ScriptObject.GetProperty 메서드

정의

지정된 이름을 가진 속성을 가져옵니다.

오버로드

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

이 API는 제품 인프라를 지원하며 코드에서 직접 사용되지 않습니다.

지정된 선택 조건을 사용하여 지정된 이름을 가진 속성을 가져옵니다.

GetProperty(String, BindingFlags)

이 API는 제품 인프라를 지원하며 코드에서 직접 사용되지 않습니다.

지정된 이름을 가진 속성을 가져옵니다.

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

지정된 선택 조건을 사용하여 지정된 이름을 가진 속성을 가져옵니다.

이 API는 제품 인프라를 지원하며 코드에서 직접 사용되지 않습니다.

public:
 virtual 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
override this.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

실제 인수 형식에서 정식 인수 형식으로의 형식 변환을 수행하는 개체입니다.

returnType
Type

속성이 가져야 하는 반환 값의 형식입니다.

types
Type[]

검색 중인 속성의 인덱스 형식입니다. 클래스에 대한 인덱서와 같은 인덱스 속성에 사용됩니다.

modifiers
ParameterModifier[]

형식이 수정된 매개 변수 시그니처로 작업하기 위해 바인딩을 사용하는 매개 변수 한정자의 배열입니다.

반환

PropertyInfo

지정된 name을 가진 속성이거나 스크립트 개체에 이 속성이 없는 경우 null입니다.

구현

추가 정보

적용 대상

GetProperty(String, BindingFlags)

지정된 이름을 가진 속성을 가져옵니다.

이 API는 제품 인프라를 지원하며 코드에서 직접 사용되지 않습니다.

public:
 virtual 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
override this.GetProperty : string * System.Reflection.BindingFlags -> System.Reflection.PropertyInfo
Public Function GetProperty (name As String, bindingAttr As BindingFlags) As PropertyInfo

매개 변수

name
String

가져올 속성의 이름입니다.

bindingAttr
BindingFlags

리플렉션을 통해 멤버를 검색하는 방법을 지정하는 열거형 값의 비트 조합입니다.

반환

PropertyInfo

지정된 name을 가진 속성이거나 스크립트 개체에 이 속성이 없는 경우 null입니다.

구현

추가 정보

적용 대상