指定したコンポーネントのプロパティのコレクションを取得します。
Overloads Public Shared Function GetProperties( _
ByVal component As Object _) As PropertyDescriptorCollection
[C#]
public static PropertyDescriptorCollection GetProperties(objectcomponent);
[C++]
public: static PropertyDescriptorCollection* GetProperties(Object* component);
[JScript]
public static function GetProperties(
component : Object) : PropertyDescriptorCollection;
パラメータ
- component
プロパティを取得する対象のコンポーネント。
戻り値
指定したコンポーネントのプロパティを格納している PropertyDescriptorCollection 。
例外
例外の種類 | 条件 |
---|---|
ArgumentNullException | component パラメータが null 参照 (Visual Basic では Nothing) です。 |
解説
コンポーネントが配置された場合、その場所に応じてプロパティが追加または削除されることがあるため、コンポーネントのプロパティがクラスのプロパティとは異なる場合があります。
使用例
このメソッドの例については、 Contains のトピックのサンプルを参照してください。
必要条件
プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ, .NET Compact Framework - Windows CE .NET
参照
TypeDescriptor クラス | TypeDescriptor メンバ | System.ComponentModel 名前空間 | TypeDescriptor.GetProperties オーバーロードの一覧 | TypeDescriptor | EventDescriptor | PropertyDescriptor | PropertyDescriptorCollection