## XmlReader::get_Name method


当在派生类中被重写时，获取当前节点的限定名称。

```cpp
virtual String System::Xml::XmlReader::get_Name()
```


### ReturnValue

当前节点的限定名称。例如，**Name** 为 **bk:book**，对应元素 **<bk:book>**。
## 备注



返回的名称取决于节点的 [XmlReader::get_NodeType](../get_nodetype/) 值。以下节点类型返回列出的值。所有其他节点类型返回空字符串。 |||
|-|-|
| 节点类型 | 名称 |
| Attribute | 属性的名称。 |
| DocumentType | 文档类型名称。 |
| Element | 标签名称。 |
| EntityReference | 引用的实体名称。 |
| ProcessingInstruction | 处理指令的目标。 |
| XmlDeclaration | 字面字符串 xml。 |

## 另见

* Class [String](../../../system/string/)
* Class [XmlReader](../)
* Namespace [System::Xml](../../)
* Library [Aspose.Font for C++](../../../)
