Xml.XMLIntf.IXMLNode.GetAttribute
Delphi
function GetAttribute(const AttrName: DOMString): OleVariant;
C++
virtual System::OleVariant __fastcall GetAttribute(const System::UnicodeString AttrName) = 0 ;
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
function | public | Xml.XMLIntf.pas Xml.XMLIntf.hpp |
Xml.XMLIntf | IXMLNode |
説明
このノードの属性の値を返します。
GetAttribute メソッドは Attributes プロパティの読み出し専用メソッドです。
AttrName は属性の名前です。
GetAttribute メソッドは,指定した属性の値を返します。通常,この値は文字列です。ノードが AttrName で指定された名前の属性を持っていない場合,GetAttribute メソッドはヌル Variant を返します。
メモ: このノードが要素ノードでない限り,GetAttribute メソッドを呼び出さないでください。属性を持つのは要素ノードだけです。