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 의 경우 일치하는 속성과 returnType같게 일치하는 indexes 여러 속성이 포함됩니다.

기본 바인더 match 의 경우 빈 배열이거나 빈 배열입니다 null .

설명

이 메서드는 메서드에서 제공하는 GetProperty 선택 영역을 제어합니다 Type.

적용 대상

추가 정보