XmlDocument.LocalName 属性

定义

获取节点的本地名称。Gets the local name of the node.

public:
 virtual property System::String ^ LocalName { System::String ^ get(); };
public override string LocalName { get; }
member this.LocalName : string
Public Overrides ReadOnly Property LocalName As String

属性值

String

对于 XmlDocument 节点,本地名称是 #document。For XmlDocument nodes, the local name is #document.

注解

返回的本地名称取决于 NodeType 节点的。The local name returned depends on the NodeType of the node. 若要查看描述为每个节点类型返回的本地名称的表,请参阅 LocalName 类中的属性 XmlNodeTo see a table describing the local name returned for each of the node types, see the LocalName property in the XmlNode class.

适用于