System::Xml::XmlNodeReader::MoveToAttribute 方法

XmlNodeReader::MoveToAttribute(int32_t) method

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

void System::Xml::XmlNodeReader::MoveToAttribute(int32_t attributeIndex) override
参数类型描述
attributeIndexint32_t属性的索引。

另见

XmlNodeReader::MoveToAttribute(String) method

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

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

ReturnValue

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

另见

XmlNodeReader::MoveToAttribute(String, String) method

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

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

ReturnValue

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

另见