次の方法で共有


TypeDescriptor.GetAttributes メソッド (Object, Boolean)

指定したコンポーネントの属性のコレクションと、カスタムの型記述子が作成されたことを示すブール値を取得します。

Overloads Public Shared Function GetAttributes( _
   ByVal component As Object, _   ByVal noCustomTypeDesc As Boolean _) As AttributeCollection
[C#]
public static AttributeCollection GetAttributes(objectcomponent,boolnoCustomTypeDesc);
[C++]
public: static AttributeCollection* GetAttributes(Object* component,boolnoCustomTypeDesc);
[JScript]
public static function GetAttributes(
   component : Object,noCustomTypeDesc : Boolean) : AttributeCollection;

パラメータ

  • component
    属性を取得する対象のコンポーネント。
  • noCustomTypeDesc
    ICustomTypeDescriptor のインスタンスが TypeDescriptor を呼び出す場合は true 。それ以外の場合は false

戻り値

コンポーネントの属性を格納している 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 | ICustomTypeDescriptor