Binder.SelectProperty メソッド

定義

指定した条件に基づいて、指定したプロパティ セットからプロパティを選択します。

public:
 abstract System::Reflection::PropertyInfo ^ SelectProperty(System::Reflection::BindingFlags bindingAttr, cli::array <System::Reflection::PropertyInfo ^> ^ match, Type ^ returnType, cli::array <Type ^> ^ indexes, cli::array <System::Reflection::ParameterModifier> ^ modifiers);
public abstract System.Reflection.PropertyInfo? SelectProperty(System.Reflection.BindingFlags bindingAttr, System.Reflection.PropertyInfo[] match, Type? returnType, Type[]? indexes, System.Reflection.ParameterModifier[]? modifiers);
public abstract System.Reflection.PropertyInfo SelectProperty(System.Reflection.BindingFlags bindingAttr, System.Reflection.PropertyInfo[] match, Type returnType, Type[] indexes, System.Reflection.ParameterModifier[] modifiers);
abstract member SelectProperty : System.Reflection.BindingFlags * System.Reflection.PropertyInfo[] * Type * Type[] * System.Reflection.ParameterModifier[] -> System.Reflection.PropertyInfo
Public MustOverride Function SelectProperty (bindingAttr As BindingFlags, match As PropertyInfo(), returnType As Type, indexes As Type(), modifiers As ParameterModifier()) As PropertyInfo

パラメーター

bindingAttr
BindingFlags

BindingFlags値のビットごとの組み合わせ。

match
PropertyInfo[]

照合の候補となるプロパティのセット。 たとえば、 Binder オブジェクトが InvokeMemberによって使用される場合、このパラメーターは、リフレクションが一致する可能性があると判断したプロパティのセットを指定します。通常、正しいメンバー名があるためです。 DefaultBinderによって提供される既定の実装では、この配列の順序が変更されます。

returnType
Type

一致するプロパティに必要な戻り値。

indexes
Type[]

検索対象のプロパティのインデックスの種類。 クラスのインデクサーなどのインデックス プロパティに使用されます。

modifiers
ParameterModifier[]

型が変更されたパラメーターシグネチャをバインドで操作できるようにするパラメーター修飾子の配列。

返品

一致するプロパティ。

例外

既定のバインダーの場合、 match には、 returnTypeindexesに等しく一致する複数のプロパティが含まれています。

既定のバインダーの場合、 matchnull または空の配列です。

注釈

このメソッドは、GetPropertyType メソッドによって提供される選択を制御します。

適用対象

こちらもご覧ください