指定したコンポーネントの属性のコレクションを取得します。
Overloads Public Shared Function GetAttributes( _
ByVal component As Object _) As AttributeCollection
[C#]
public static AttributeCollection GetAttributes(objectcomponent);
[C++]
public: static AttributeCollection* GetAttributes(Object* component);
[JScript]
public static function GetAttributes(
component : Object) : AttributeCollection;
パラメータ
- component
属性を取得する対象のコンポーネント。
戻り値
コンポーネントの属性を格納している AttributeCollection 。コンポーネントが null 参照 (Visual Basic では Nothing) の場合、このメソッドは空のコレクションを返します。
使用例
このメソッドの例については、 Matches のトピックのサンプルを参照してください。
必要条件
プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ
参照
TypeDescriptor クラス | TypeDescriptor メンバ | System.ComponentModel 名前空間 | TypeDescriptor.GetAttributes オーバーロードの一覧 | TypeDescriptor | EventDescriptor | PropertyDescriptor | Attribute | AttributeCollection