指定したコンポーネントの型の属性のコレクションを取得します。
Overloads Public Shared Function GetAttributes( _
ByVal componentType As Type _) As AttributeCollection
[C#]
public static AttributeCollection GetAttributes(TypecomponentType);
[C++]
public: static AttributeCollection* GetAttributes(Type* componentType);
[JScript]
public static function GetAttributes(
componentType : Type) : AttributeCollection;
パラメータ
- componentType
属性を取得する対象のコンポーネントのクラスを表す Type 。
戻り値
コンポーネントの型の属性を格納している AttributeCollection 。コンポーネントが null 参照 (Visual Basic では Nothing) の場合、このメソッドは空のコレクションを返します。
解説
このメソッドのこの形式は、オブジェクトのインスタンスがない場合にだけ呼び出します。
必要条件
プラットフォーム: 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