System::Xml::XmlTextReader::MoveToAttribute 方法

XmlTextReader::MoveToAttribute(int32_t) method

移动到具有指定索引的属性。

void System::Xml::XmlTextReader::MoveToAttribute(int32_t i) override
参数类型描述
iint32_t属性的索引。

另见

XmlTextReader::MoveToAttribute(String, String) method

移动到具有指定本地名称和命名空间 URI 的属性。

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

ReturnValue

true if the attribute is found; otherwise, false. If false, the reader’s position does not change.

另见

XmlTextReader::MoveToAttribute(String) method

移动到具有指定名称的属性。

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

ReturnValue

true if the attribute is found; otherwise, false. If false, the reader’s position does not change.

另见