System::Xml::XmlAttributeCollection::idx_get 方法

XmlAttributeCollection::idx_get(const String&, const String&) method

返回具有指定本地名称和命名空间统一资源标识符(URI)的属性。

SharedPtr<XmlAttribute> System::Xml::XmlAttributeCollection::idx_get(const String &localName, const String &namespaceURI)
参数类型描述
localNameconst String&属性的本地名称。
namespaceURIconst String&属性的命名空间 URI。

ReturnValue

具有指定本地名称和命名空间 URI 的属性。如果属性不存在,此方法返回 nullptr

另见

XmlAttributeCollection::idx_get(const String&) method

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

SharedPtr<XmlAttribute> System::Xml::XmlAttributeCollection::idx_get(const String &name)
参数类型描述
名称const String&属性的限定名称。

ReturnValue

具有指定名称的属性。如果属性不存在,此方法返回 nullptr

另见

XmlAttributeCollection::idx_get(int32_t) method

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

SharedPtr<XmlAttribute> System::Xml::XmlAttributeCollection::idx_get(int32_t i)
参数类型描述
iint32_t属性的索引。

ReturnValue

指定索引处的属性。

另见