_Type.GetProperty 메서드

정의

버전에 관계없이 GetProperty 메서드에 액세스할 수 있는 COM 개체를 제공합니다.

오버로드

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

버전에 관계없이 GetProperty(String, Type, Type[], ParameterModifier[]) 메서드에 액세스할 수 있는 COM 개체를 제공합니다.

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

버전에 관계없이 GetProperty(String, BindingFlags, Binder, Type, Type[], ParameterModifier[]) 메서드에 액세스할 수 있는 COM 개체를 제공합니다.

GetProperty(String, Type, Type[])

버전에 관계없이 GetProperty(String, Type, Type[]) 메서드에 액세스할 수 있는 COM 개체를 제공합니다.

GetProperty(String, Type)

버전에 관계없이 GetProperty(String, Type) 메서드에 액세스할 수 있는 COM 개체를 제공합니다.

GetProperty(String, Type[])

버전에 관계없이 GetProperty(String, Type[]) 메서드에 액세스할 수 있는 COM 개체를 제공합니다.

GetProperty(String, BindingFlags)

버전에 관계없이 GetProperty(String, BindingFlags) 메서드에 액세스할 수 있는 COM 개체를 제공합니다.

GetProperty(String)

버전에 관계없이 GetProperty(String) 메서드에 액세스할 수 있는 COM 개체를 제공합니다.

설명

이 메서드는 비관리 코드에서 액세스를 위한 관리 되는 클래스에는 하며 관리 코드에서 호출할 수 없습니다.

합니다 Type.GetProperty 메서드는 현재 특정 속성을 가져옵니다 Type합니다.

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

버전에 관계없이 GetProperty(String, Type, Type[], ParameterModifier[]) 메서드에 액세스할 수 있는 COM 개체를 제공합니다.

public:
 System::Reflection::PropertyInfo ^ GetProperty(System::String ^ name, Type ^ returnType, cli::array <Type ^> ^ types, cli::array <System::Reflection::ParameterModifier> ^ modifiers);
public System.Reflection.PropertyInfo GetProperty (string name, Type returnType, Type[] types, System.Reflection.ParameterModifier[] modifiers);
abstract member GetProperty : string * Type * Type[] * System.Reflection.ParameterModifier[] -> System.Reflection.PropertyInfo
Public Function GetProperty (name As String, returnType As Type, types As Type(), modifiers As ParameterModifier()) As PropertyInfo

매개 변수

name
String

가져올 public 속성의 이름이 들어 있는 String입니다.

returnType
Type

속성의 반환 형식입니다.

types
Type[]

가져올 인덱싱된 속성에 대한 매개 변수의 수, 차수, 형식 등을 나타내는 Type 개체 배열입니다.

또는

인덱싱되지 않은 속성을 가져오기 위한 Type 형식의 빈 배열입니다(즉, Type[] types = new Type[0]).

modifiers
ParameterModifier[]

ParameterModifier 배열에서 해당하는 요소와 연관된 특성을 나타내는 types 개체 배열입니다. 기본 바인더에서는 이 매개 변수를 처리하지 않습니다.

반환

PropertyInfo 개체는 지정된 요구 사항과 일치하는 public 속성이 있으면 이를 나타내고, 없으면 null을 반환합니다.

설명

이 메서드는 비관리 코드에서 액세스를 위한 관리 되는 클래스에는 하며 관리 코드에서 호출할 수 없습니다.

Type.GetProperty 메서드는 지정 된 인수 형식 및 한정자와 일치 하는 매개 변수를 가진 지정된 된 public 속성에 대 한를 검색 합니다.

적용 대상

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

버전에 관계없이 GetProperty(String, BindingFlags, Binder, Type, Type[], ParameterModifier[]) 메서드에 액세스할 수 있는 COM 개체를 제공합니다.

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

가져올 속성의 이름이 들어 있는 String입니다.

bindingAttr
BindingFlags

검색 방법을 지정하는 하나 이상의 BindingFlags로 구성된 비트 마스크입니다.

또는

0(null을 반환하는 경우)

binder
Binder

속성 집합을 정의하고 바인딩을 활성화하는 Binder 개체입니다. 이 개체는 또한 리플렉션을 통해 오버로드된 멤버를 선택할 수 있고 인수 형식을 강제 변환할 수 있으며 멤버를 호출할 수도 있습니다.

또는

DefaultBinder를 사용하려는 경우 null입니다.

returnType
Type

속성의 반환 형식입니다.

types
Type[]

가져올 인덱싱된 속성에 대한 매개 변수의 수, 차수, 형식 등을 나타내는 Type 개체 배열입니다.

또는

인덱싱되지 않은 속성을 가져오기 위한 Type 형식의 빈 배열입니다(즉, Type[] types = new Type[0]).

modifiers
ParameterModifier[]

ParameterModifier 배열에서 해당하는 요소와 연관된 특성을 나타내는 types 개체 배열입니다. 기본 바인더에서는 이 매개 변수를 처리하지 않습니다.

반환

지정된 요구 사항과 일치하는 속성을 나타내는 PropertyInfo 개체가 있으면 이 개체를 반환하고, 그렇지 않으면 null을 반환합니다.

설명

이 메서드는 비관리 코드에서 액세스를 위한 관리 되는 클래스에는 하며 관리 코드에서 호출할 수 없습니다.

Type.GetProperty 매개 변수를 가진 지정 된 인수 형식 및 한정자를 지정 된 바인딩 제약 조건과 일치 하는 지정된 된 속성에 대 한 메서드를 검색 합니다.

적용 대상

GetProperty(String, Type, Type[])

버전에 관계없이 GetProperty(String, Type, Type[]) 메서드에 액세스할 수 있는 COM 개체를 제공합니다.

public:
 System::Reflection::PropertyInfo ^ GetProperty(System::String ^ name, Type ^ returnType, cli::array <Type ^> ^ types);
public System.Reflection.PropertyInfo GetProperty (string name, Type returnType, Type[] types);
abstract member GetProperty : string * Type * Type[] -> System.Reflection.PropertyInfo
Public Function GetProperty (name As String, returnType As Type, types As Type()) As PropertyInfo

매개 변수

name
String

가져올 public 속성의 이름이 들어 있는 String입니다.

returnType
Type

속성의 반환 형식입니다.

types
Type[]

가져올 인덱싱된 속성에 대한 매개 변수의 수, 차수, 형식 등을 나타내는 Type 개체 배열입니다.

또는

인덱싱되지 않은 속성을 가져오기 위한 Type 형식의 빈 배열입니다(즉, Type[] types = new Type[0]).

반환

PropertyInfo 개체는 지정된 인수 형식과 일치하는 매개 변수를 가진 public 속성이 있으면 이를 나타내고, 없으면 null을 반환합니다.

설명

이 메서드는 비관리 코드에서 액세스를 위한 관리 되는 클래스에는 하며 관리 코드에서 호출할 수 없습니다.

Type.GetProperty 지정된 된 인수 형식과 일치 하는 매개 변수를 가진 지정 된 공용 속성에 대 한 메서드를 검색 합니다.

적용 대상

GetProperty(String, Type)

버전에 관계없이 GetProperty(String, Type) 메서드에 액세스할 수 있는 COM 개체를 제공합니다.

public:
 System::Reflection::PropertyInfo ^ GetProperty(System::String ^ name, Type ^ returnType);
public System.Reflection.PropertyInfo GetProperty (string name, Type returnType);
abstract member GetProperty : string * Type -> System.Reflection.PropertyInfo
Public Function GetProperty (name As String, returnType As Type) As PropertyInfo

매개 변수

name
String

가져올 public 속성의 이름이 들어 있는 String입니다.

returnType
Type

속성의 반환 형식입니다.

반환

PropertyInfo 개체는 지정된 이름의 public 속성이 있으면 이를 나타내고, 없으면 null을 반환합니다.

설명

이 메서드는 비관리 코드에서 액세스를 위한 관리 되는 클래스에는 하며 관리 코드에서 호출할 수 없습니다.

Type.GetProperty 메서드 반환 형식을 확인 하 고 지정 된 이름을 사용 하 여 공용 속성을 검색 합니다.

적용 대상

GetProperty(String, Type[])

버전에 관계없이 GetProperty(String, Type[]) 메서드에 액세스할 수 있는 COM 개체를 제공합니다.

public:
 System::Reflection::PropertyInfo ^ GetProperty(System::String ^ name, cli::array <Type ^> ^ types);
public System.Reflection.PropertyInfo GetProperty (string name, Type[] types);
abstract member GetProperty : string * Type[] -> System.Reflection.PropertyInfo
Public Function GetProperty (name As String, types As Type()) As PropertyInfo

매개 변수

name
String

가져올 public 속성의 이름이 들어 있는 String입니다.

types
Type[]

가져올 인덱싱된 속성에 대한 매개 변수의 수, 차수, 형식 등을 나타내는 Type 개체 배열입니다.

또는

인덱싱되지 않은 속성을 가져오기 위한 Type 형식의 빈 배열입니다(즉, Type[] types = new Type[0]).

반환

PropertyInfo 개체는 지정된 인수 형식과 일치하는 매개 변수를 가진 public 속성이 있으면 이를 나타내고, 없으면 null을 반환합니다.

설명

이 메서드는 비관리 코드에서 액세스를 위한 관리 되는 클래스에는 하며 관리 코드에서 호출할 수 없습니다.

Type.GetProperty 지정된 된 인수 형식과 일치 하는 매개 변수를 가진 지정 된 공용 속성에 대 한 메서드를 검색 합니다.

적용 대상

GetProperty(String, BindingFlags)

버전에 관계없이 GetProperty(String, BindingFlags) 메서드에 액세스할 수 있는 COM 개체를 제공합니다.

public:
 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
Public Function GetProperty (name As String, bindingAttr As BindingFlags) As PropertyInfo

매개 변수

name
String

가져올 속성의 이름이 들어 있는 String입니다.

bindingAttr
BindingFlags

검색 방법을 지정하는 하나 이상의 BindingFlags로 구성된 비트 마스크입니다.

또는

0(null을 반환하는 경우)

반환

지정된 요구 사항과 일치하는 속성을 나타내는 PropertyInfo 개체가 있으면 이 개체를 반환하고, 그렇지 않으면 null을 반환합니다.

설명

이 메서드는 비관리 코드에서 액세스를 위한 관리 되는 클래스에는 하며 관리 코드에서 호출할 수 없습니다.

Type.GetProperty 메서드를 지정 된 바인딩 제약 조건을 사용 하 여 지정된 된 속성을 검색 합니다.

적용 대상

GetProperty(String)

버전에 관계없이 GetProperty(String) 메서드에 액세스할 수 있는 COM 개체를 제공합니다.

public:
 System::Reflection::PropertyInfo ^ GetProperty(System::String ^ name);
public System.Reflection.PropertyInfo GetProperty (string name);
abstract member GetProperty : string -> System.Reflection.PropertyInfo
Public Function GetProperty (name As String) As PropertyInfo

매개 변수

name
String

가져올 public 속성의 이름이 들어 있는 String입니다.

반환

PropertyInfo 개체는 지정된 이름의 public 속성이 있으면 이를 나타내고, 없으면 null을 반환합니다.

설명

이 메서드는 비관리 코드에서 액세스를 위한 관리 되는 클래스에는 하며 관리 코드에서 호출할 수 없습니다.

Type.GetProperty 지정 된 이름의 공용 속성에 대 한 메서드를 검색 합니다.

적용 대상