IReflect.GetProperty 메서드

정의

지정된 속성에 해당하는 PropertyInfo 개체를 검색합니다.

오버로드

GetProperty(String, BindingFlags)

지정된 검색 제약 조건에 지정된 속성에 해당하는 PropertyInfo 개체를 검색합니다.

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

지정된 검색 제약 조건에 따라 지정된 속성에 해당하는 PropertyInfo 개체를 검색합니다.

GetProperty(String, BindingFlags)

지정된 검색 제약 조건에 지정된 속성에 해당하는 PropertyInfo 개체를 검색합니다.

public:
 System::Reflection::PropertyInfo ^ GetProperty(System::String ^ name, System::Reflection::BindingFlags bindingAttr);
public System.Reflection.PropertyInfo? GetProperty (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

찾으려는 속성의 이름입니다.

bindingAttr
BindingFlags

검색을 제어하는 데 사용되는 바인딩 특성입니다.

반환

bindingAttr에 지정된 검색 제약 조건을 충족하는 찾은 속성에 대한 PropertyInfo 개체입니다. 해당 속성을 찾지 못한 경우에는 null입니다.

예외

개체가 이름이 같은 여러 필드를 구현하는 경우

추가 정보

적용 대상

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

지정된 검색 제약 조건에 따라 지정된 속성에 해당하는 PropertyInfo 개체를 검색합니다.

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);
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

찾을 멤버의 이름입니다.

bindingAttr
BindingFlags

검색을 제어하는 데 사용되는 바인딩 특성입니다.

binder
Binder

Binder를 구현하는 개체로, 이 메서드와 관련된 속성을 포함합니다.

returnType
Type

속성의 형식입니다.

types
Type[]

같은 이름을 가진 오버로드된 메서드 중에서 선택하는 데 사용되는 배열입니다.

modifiers
ParameterModifier[]

매개 변수 한정자를 선택하는 데 사용되는 배열입니다.

반환

지정된 이름을 가진 속성을 이 리플렉션 개체에서 찾은 경우 찾은 속성에 대한 PropertyInfo 개체입니다. 해당 속성을 찾지 못한 경우에는 null입니다.

설명

이 메서드는 PropertyInfo 지정된 검색 제약 조건 하에서 지정된 속성에 해당하는 개체를 검색합니다. 형식 배열은 오버로드된 메서드 중에서 선택하는 데 사용됩니다.

추가 정보

적용 대상