System::Xml::XmlTextReader::GetAttribute 方法
XmlTextReader::GetAttribute(int32_t) method
返回具有指定索引的属性的值。
String System::Xml::XmlTextReader::GetAttribute(int32_t i) override
| 参数 | 类型 | 描述 |
|---|---|---|
| i | int32_t | 属性的索引。索引从零开始。(第一个属性的索引为 0。) |
ReturnValue
指定属性的值。
另见
- Class String
- Class XmlTextReader
- Namespace System::Xml
- Library Aspose.Font for C++
XmlTextReader::GetAttribute(String, String) method
返回具有指定本地名称和命名空间 URI 的属性的值。
String System::Xml::XmlTextReader::GetAttribute(String localName, String namespaceURI) override
| 参数 | 类型 | 描述 |
|---|---|---|
| localName | String | 属性的本地名称。 |
| namespaceURI | String | 属性的命名空间 URI。 |
ReturnValue
指定属性的值。如果未找到该属性,则返回 nullptr。此方法不会移动读取器。
另见
- Class String
- Class XmlTextReader
- Namespace System::Xml
- Library Aspose.Font for C++
XmlTextReader::GetAttribute(String) method
返回具有指定名称的属性的值。
String System::Xml::XmlTextReader::GetAttribute(String name) override
| 参数 | 类型 | 描述 |
|---|---|---|
| 名称 | String | 属性的限定名称。 |
ReturnValue
指定属性的值。如果未找到属性,则返回 nullptr。
另见
- Class String
- Class XmlTextReader
- Namespace System::Xml
- Library Aspose.Font for C++