_Type.GetProperties メソッド

定義

COM オブジェクトに、GetProperties メソッドへのバージョンに依存しないアクセスが用意されています。

オーバーロード

GetProperties()

COM オブジェクトに、GetProperties() メソッドへのバージョンに依存しないアクセスが用意されています。

GetProperties(BindingFlags)

COM オブジェクトに、GetProperties(BindingFlags) メソッドへのバージョンに依存しないアクセスが用意されています。

注釈

このメソッドは、アンマネージ コードからマネージド クラスにアクセスするためのメソッドであり、マネージド コードから呼び出さないでください。

メソッドは Type.GetProperties 、現在 Typeの のプロパティを取得します。

GetProperties()

COM オブジェクトに、GetProperties() メソッドへのバージョンに依存しないアクセスが用意されています。

public:
 cli::array <System::Reflection::PropertyInfo ^> ^ GetProperties();
public System.Reflection.PropertyInfo[] GetProperties ();
abstract member GetProperties : unit -> System.Reflection.PropertyInfo[]
Public Function GetProperties () As PropertyInfo()

戻り値

現在の PropertyInfo のすべてのパブリック プロパティを表す Type オブジェクトの配列。

または

現在の PropertyInfo にパブリック プロパティが存在しない場合は、Type 型の空の配列。

注釈

このメソッドは、アンマネージ コードからマネージド クラスにアクセスするためのメソッドであり、マネージド コードから呼び出さないでください。

メソッドは Type.GetProperties 、現在 Typeの のすべてのパブリック プロパティを返します。

適用対象

GetProperties(BindingFlags)

COM オブジェクトに、GetProperties(BindingFlags) メソッドへのバージョンに依存しないアクセスが用意されています。

public:
 cli::array <System::Reflection::PropertyInfo ^> ^ GetProperties(System::Reflection::BindingFlags bindingAttr);
public System.Reflection.PropertyInfo[] GetProperties (System.Reflection.BindingFlags bindingAttr);
abstract member GetProperties : System.Reflection.BindingFlags -> System.Reflection.PropertyInfo[]
Public Function GetProperties (bindingAttr As BindingFlags) As PropertyInfo()

パラメーター

bindingAttr
BindingFlags

検索の実行方法を指定する 1 つ以上の BindingFlags から成るビットマスク。

- または -

null を返す場合は 0。

戻り値

現在の Type のプロパティのうち、指定したバインディング制約に一致するすべてのプロパティを表す PropertyInfo オブジェクトの配列。

- または -

現在の PropertyInfo にプロパティが設定されていないか、またはプロパティの中でバインディング制約に一致するものが存在しない場合は、Type 型の空の配列。

注釈

このメソッドは、アンマネージ コードからマネージド クラスにアクセスするためのメソッドであり、マネージド コードから呼び出さないでください。

メソッドは Type.GetProperties 、指定したバインド制約を使用して、現在 Typeの のプロパティを検索します。

適用対象