System::Xml::XmlReader::MoveToAttribute 方法

XmlReader::MoveToAttribute(int32_t) method

在派生类中重写时,移动到具有指定索引的属性。

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

另见

XmlReader::MoveToAttribute(String) method

若在派生类中被重写,则移动到具有指定 XmlReader::get_Name 值的属性。

virtual bool System::Xml::XmlReader::MoveToAttribute(String name)=0
参数类型描述
名称String属性的限定名称。

ReturnValue

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

另见

XmlReader::MoveToAttribute(String, String) method

若在派生类中被重写,则移动到具有指定 XmlReader::get_LocalNameXmlReader::get_NamespaceURI 值的属性。

virtual bool System::Xml::XmlReader::MoveToAttribute(String name, String ns)=0
参数类型描述
名称String属性的本地名称。
nsString属性的命名空间 URI。

ReturnValue

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

另见