Binder.SelectProperty メソッド
指定されている一連のプロパティから、指定された基準に基づいてプロパティを選択します。
Public MustOverride Function SelectProperty( _
ByVal bindingAttr As BindingFlags, _ ByVal match() As PropertyInfo, _ ByVal returnType As Type, _ ByVal indexes() As Type, _ ByVal modifiers() As ParameterModifier _) As PropertyInfo
[C#]
public abstract PropertyInfo SelectProperty(BindingFlagsbindingAttr,PropertyInfo[] match,TypereturnType,Type[] indexes,ParameterModifier[] modifiers);
[C++]
public: virtual PropertyInfo* SelectProperty(BindingFlagsbindingAttr,PropertyInfo* match[],Type* returnType,Type* indexes[],ParameterModifiermodifiers[]) = 0;
[JScript]
public abstract function SelectProperty(
bindingAttr : BindingFlags,match : PropertyInfo[],returnType : Type,indexes : Type[],modifiers : ParameterModifier[]) : PropertyInfo;
パラメータ
- bindingAttr
BindingFlags 列挙子の 1 つ。 - match
リフレクションが一致する可能性があると判断した一連のプロパティ。通常、適切なメンバ名を持っているかどうかが判断基準になります。 - returnType
基準に一致したプロパティが持つ必要のある戻り値。 - indexes
検索対象のプロパティのインデックス型。クラスのインデクサなど、インデックス プロパティに使用されます。 - modifiers
型が変更されているパラメータ シグネチャとでもバインディングが機能するようにするためのパラメータ修飾子の配列。
戻り値
基準に一致するプロパティを保持している PropertyInfo オブジェクト。
解説
このメソッドは、 GetProperty メソッドによる、Type に関する選択を制御します。
必要条件
プラットフォーム: 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, Common Language Infrastructure (CLI) Standard
参照
Binder クラス | Binder メンバ | System.Reflection 名前空間 | PropertyInfo