System::Xml::XmlElement::HasAttribute メソッド

XmlElement::HasAttribute(String, String) method

現在のノードが指定されたローカル名と名前空間 URI の属性を持つかどうかを判定します。

virtual bool System::Xml::XmlElement::HasAttribute(String localName, String namespaceURI)
パラメーター説明
localNameString検索する属性のローカル名。
namespaceURIString検索する属性の名前空間 URI。

ReturnValue

true if the current node has the specified attribute; otherwise, false.

参照

XmlElement::HasAttribute(String) method

現在のノードが指定された名前の属性を持つかどうかを判定します。

virtual bool System::Xml::XmlElement::HasAttribute(String name)
パラメーター説明
nameString検索する属性の名前。これは修飾名です。マッチするノードの get_Name 値と照合されます。

ReturnValue

true if the current node has the specified attribute; otherwise, false.

参照