XmlDocument.Name 属性

定义

获取节点的限定名称。Gets the qualified name of the node.

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

属性值

String

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

注解

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

适用于