_Type.GetProperties メソッド

定義

GetProperties メソッドへのバージョンに依存しないアクセス権を持つ COM オブジェクトを提供します。

オーバーロード

名前 説明
GetProperties()

GetProperties() メソッドへのバージョンに依存しないアクセス権を持つ COM オブジェクトを提供します。

GetProperties(BindingFlags)

GetProperties(BindingFlags) メソッドへのバージョンに依存しないアクセス権を持つ COM オブジェクトを提供します。

注釈

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

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

GetProperties()

GetProperties() メソッドへのバージョンに依存しないアクセス権を持つ COM オブジェクトを提供します。

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

返品

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

-または-

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

注釈

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

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

適用対象

GetProperties(BindingFlags)

GetProperties(BindingFlags) メソッドへのバージョンに依存しないアクセス権を持つ COM オブジェクトを提供します。

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 オブジェクトの配列。

-または-

現在のTypeにプロパティがない場合、またはバインド制約に一致するプロパティがない場合は、PropertyInfo型の空の配列。

注釈

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

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

適用対象