System::Xml::XmlTextReader::GetAttribute 方法

XmlTextReader::GetAttribute(int32_t) method

返回具有指定索引的属性的值。

String System::Xml::XmlTextReader::GetAttribute(int32_t i) override
参数类型描述
iint32_t属性的索引。索引从零开始。(第一个属性的索引为 0。)

ReturnValue

指定属性的值。

另见

XmlTextReader::GetAttribute(String, String) method

返回具有指定本地名称和命名空间 URI 的属性的值。

String System::Xml::XmlTextReader::GetAttribute(String localName, String namespaceURI) override
参数类型描述
localNameString属性的本地名称。
namespaceURIString属性的命名空间 URI。

ReturnValue

指定属性的值。如果未找到该属性,则返回 nullptr。此方法不会移动读取器。

另见

XmlTextReader::GetAttribute(String) method

返回具有指定名称的属性的值。

String System::Xml::XmlTextReader::GetAttribute(String name) override
参数类型描述
名称String属性的限定名称。

ReturnValue

指定属性的值。如果未找到属性,则返回 nullptr

另见