Language

_Type.GetProperty メソッド

定義

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

オーバーロード

名前 説明
GetProperty(String, Type, Type[], ParameterModifier[])

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

GetProperty(String, BindingFlags, Binder, Type, Type[], ParameterModifier[])

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

GetProperty(String, Type, Type[])

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

GetProperty(String, Type)

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

GetProperty(String, Type[])

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

GetProperty(String, BindingFlags)

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

GetProperty(String)

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

注釈

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

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

GetProperty(String, Type, Type[], ParameterModifier[])

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

public:
 System::Reflection::PropertyInfo ^ GetProperty(System::String ^ name, Type ^ returnType, cli::array <Type ^> ^ types, cli::array <System::Reflection::ParameterModifier> ^ modifiers);
public System.Reflection.PropertyInfo GetProperty(string name, Type returnType, Type[] types, System.Reflection.ParameterModifier[] modifiers);
abstract member GetProperty : string * Type * Type[] * System.Reflection.ParameterModifier[] -> System.Reflection.PropertyInfo
Public Function GetProperty (name As String, returnType As Type, types As Type(), modifiers As ParameterModifier()) As PropertyInfo

パラメーター

name
String

取得するパブリック プロパティの名前を含む String 。

returnType
Type

プロパティの戻り値の型。

types
Type[]

取得するインデックス付きプロパティのパラメーターの数、順序、および型を表す Type オブジェクトの配列。

-又は-

インデックスが作成されていないプロパティを取得 Type 型の空の配列 (つまり、Type[] 型 = 新しい Type[0])。

modifiers
ParameterModifier[]

ParameterModifier配列内の対応する要素に関連付けられた属性を表すtypes オブジェクトの配列。 既定のバインダーでは、このパラメーターは処理されません。

返品

指定した要件に一致するパブリック プロパティを表す PropertyInfo オブジェクト (見つかった場合)。それ以外の場合は null。

注釈

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

Type.GetProperty メソッドは、指定した引数の型と修飾子に一致するパラメーターを持つ、指定したパブリック プロパティを検索します。

適用対象

GetProperty(String, BindingFlags, Binder, Type, Type[], ParameterModifier[])

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

public:
 System::Reflection::PropertyInfo ^ GetProperty(System::String ^ name, System::Reflection::BindingFlags bindingAttr, System::Reflection::Binder ^ binder, Type ^ returnType, cli::array <Type ^> ^ types, cli::array <System::Reflection::ParameterModifier> ^ modifiers);
public System.Reflection.PropertyInfo GetProperty(string name, System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, Type returnType, Type[] types, System.Reflection.ParameterModifier[] modifiers);
abstract member GetProperty : string * System.Reflection.BindingFlags * System.Reflection.Binder * Type * Type[] * System.Reflection.ParameterModifier[] -> System.Reflection.PropertyInfo
Public Function GetProperty (name As String, bindingAttr As BindingFlags, binder As Binder, returnType As Type, types As Type(), modifiers As ParameterModifier()) As PropertyInfo

パラメーター

name
String

取得するプロパティの名前を含む String 。

bindingAttr
BindingFlags

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

-又は-

nullを返す場合は 0。

binder
Binder

プロパティのセットを定義し、バインディングを有効にする Binder オブジェクト。これには、オーバーロードされたメソッドの選択、引数型の強制、およびリフレクションによるメンバーの呼び出しが含まれる場合があります。

-又は-

nullをクリックして、 DefaultBinderを使用します。

returnType
Type

プロパティの戻り値の型。

types
Type[]

取得するインデックス付きプロパティのパラメーターの数、順序、および型を表す Type オブジェクトの配列。

-又は-

インデックスが作成されていないプロパティを取得 Type 型の空の配列 (つまり、Type[] 型 = 新しい Type[0])。

modifiers
ParameterModifier[]

ParameterModifier配列内の対応する要素に関連付けられた属性を表すtypes オブジェクトの配列。 既定のバインダーでは、このパラメーターは処理されません。

返品

指定した要件に一致するプロパティを表す PropertyInfo オブジェクト (見つかった場合)、それ以外の場合は null。

注釈

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

Type.GetProperty メソッドは、指定したバインド制約を使用して、指定した引数の型と修飾子と一致するパラメーターを持つ、指定したプロパティを検索します。

適用対象

GetProperty(String, Type, Type[])

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

public:
 System::Reflection::PropertyInfo ^ GetProperty(System::String ^ name, Type ^ returnType, cli::array <Type ^> ^ types);
public System.Reflection.PropertyInfo GetProperty(string name, Type returnType, Type[] types);
abstract member GetProperty : string * Type * Type[] -> System.Reflection.PropertyInfo
Public Function GetProperty (name As String, returnType As Type, types As Type()) As PropertyInfo

パラメーター

name
String

取得するパブリック プロパティの名前を含む String 。

returnType
Type

プロパティの戻り値の型。

types
Type[]

取得するインデックス付きプロパティのパラメーターの数、順序、および型を表す Type オブジェクトの配列。

-又は-

インデックスが作成されていないプロパティを取得 Type 型の空の配列 (つまり、Type[] 型 = 新しい Type[0])。

返品

指定した引数の型と一致するパラメーターが見つかった場合はパブリック プロパティを表す PropertyInfo オブジェクト。それ以外の場合は null。

注釈

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

Type.GetProperty メソッドは、指定した引数の型と一致するパラメーターを持つ指定されたパブリック プロパティを検索します。

適用対象

GetProperty(String, Type)

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

public:
 System::Reflection::PropertyInfo ^ GetProperty(System::String ^ name, Type ^ returnType);
public System.Reflection.PropertyInfo GetProperty(string name, Type returnType);
abstract member GetProperty : string * Type -> System.Reflection.PropertyInfo
Public Function GetProperty (name As String, returnType As Type) As PropertyInfo

パラメーター

name
String

取得するパブリック プロパティの名前を含む String 。

returnType
Type

プロパティの戻り値の型。

返品

指定した名前のパブリック プロパティを表す PropertyInfo オブジェクト (見つかった場合)。それ以外の場合は null。

注釈

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

Type.GetProperty メソッドは、指定した名前と戻り値の型を持つパブリック プロパティを検索します。

適用対象

GetProperty(String, Type[])

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

public:
 System::Reflection::PropertyInfo ^ GetProperty(System::String ^ name, cli::array <Type ^> ^ types);
public System.Reflection.PropertyInfo GetProperty(string name, Type[] types);
abstract member GetProperty : string * Type[] -> System.Reflection.PropertyInfo
Public Function GetProperty (name As String, types As Type()) As PropertyInfo

パラメーター

name
String

取得するパブリック プロパティの名前を含む String 。

types
Type[]

取得するインデックス付きプロパティのパラメーターの数、順序、および型を表す Type オブジェクトの配列。

-又は-

インデックスが作成されていないプロパティを取得 Type 型の空の配列 (つまり、Type[] 型 = 新しい Type[0])。

返品

指定した引数の型と一致するパラメーターが見つかった場合はパブリック プロパティを表す PropertyInfo オブジェクト。それ以外の場合は null。

注釈

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

Type.GetProperty メソッドは、指定した引数の型と一致するパラメーターを持つ指定されたパブリック プロパティを検索します。

適用対象

GetProperty(String, BindingFlags)

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

public:
 System::Reflection::PropertyInfo ^ GetProperty(System::String ^ name, System::Reflection::BindingFlags bindingAttr);
public System.Reflection.PropertyInfo GetProperty(string name, System.Reflection.BindingFlags bindingAttr);
abstract member GetProperty : string * System.Reflection.BindingFlags -> System.Reflection.PropertyInfo
Public Function GetProperty (name As String, bindingAttr As BindingFlags) As PropertyInfo

パラメーター

name
String

取得するプロパティの名前を含む String 。

bindingAttr
BindingFlags

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

-又は-

nullを返す場合は 0。

返品

指定した要件に一致するプロパティを表す PropertyInfo オブジェクト (見つかった場合)、それ以外の場合は null。

注釈

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

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

適用対象

GetProperty(String)

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

public:
 System::Reflection::PropertyInfo ^ GetProperty(System::String ^ name);
public System.Reflection.PropertyInfo GetProperty(string name);
abstract member GetProperty : string -> System.Reflection.PropertyInfo
Public Function GetProperty (name As String) As PropertyInfo

パラメーター

name
String

取得するパブリック プロパティの名前を含む String 。

返品

指定した名前のパブリック プロパティを表す PropertyInfo オブジェクト (見つかった場合)。それ以外の場合は null。

注釈

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

Type.GetProperty メソッドは、指定した名前のパブリック プロパティを検索します。

適用対象