_Type.GetProperty 메서드

정의

COM 개체에 메서드에 대한 버전 독립적 액세스를 GetProperty 제공합니다.

오버로드

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

COM 개체에 메서드에 대한 버전 독립적 액세스를 GetProperty(String, Type, Type[], ParameterModifier[]) 제공합니다.

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

COM 개체에 메서드에 대한 버전 독립적 액세스를 GetProperty(String, BindingFlags, Binder, Type, Type[], ParameterModifier[]) 제공합니다.

GetProperty(String, Type, Type[])

COM 개체에 메서드에 대한 버전 독립적 액세스를 GetProperty(String, Type, Type[]) 제공합니다.

GetProperty(String, Type)

COM 개체에 메서드에 대한 버전 독립적 액세스를 GetProperty(String, Type) 제공합니다.

GetProperty(String, Type[])

COM 개체에 메서드에 대한 버전 독립적 액세스를 GetProperty(String, Type[]) 제공합니다.

GetProperty(String, BindingFlags)

COM 개체에 메서드에 대한 버전 독립적 액세스를 GetProperty(String, BindingFlags) 제공합니다.

GetProperty(String)

COM 개체에 메서드에 대한 버전 독립적 액세스를 GetProperty(String) 제공합니다.

설명

이 메서드는 관리되지 않는 코드에서 관리되는 클래스에 액세스하기 위한 것이며 관리 코드에서 호출해서는 안 됩니다.

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

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

COM 개체에 메서드에 대한 버전 독립적 액세스를 GetProperty(String, Type, Type[], ParameterModifier[]) 제공합니다.

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

String 가져올 public 속성의 이름을 포함하는 항목입니다.

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[])

COM 개체에 메서드에 대한 버전 독립적 액세스를 GetProperty(String, BindingFlags, Binder, Type, Type[], ParameterModifier[]) 제공합니다.

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 속성 집합을 정의하고 바인딩을 사용하도록 설정하는 개체로, 오버로드된 메서드 선택, 인수 형식 강제 변환 및 리플렉션을 통해 멤버 호출을 포함할 수 있습니다.

-또는-

null를 사용합니다 DefaultBinder.

returnType
Type

속성의 반환 형식입니다.

types
Type[]

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

-또는-

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

modifiers
ParameterModifier[]

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

반품

PropertyInfo 지정된 요구 사항과 일치하는 속성을 나타내는 개체입니다(있는 경우). 그렇지 않으면 null.

설명

이 메서드는 관리되지 않는 코드에서 관리되는 클래스에 액세스하기 위한 것이며 관리 코드에서 호출해서는 안 됩니다.

메서드는 Type.GetProperty 지정된 바인딩 제약 조건을 사용하여 매개 변수가 지정된 인수 형식 및 한정자와 일치하는 지정된 속성을 검색합니다.

적용 대상

GetProperty(String, Type, Type[])

COM 개체에 메서드에 대한 버전 독립적 액세스를 GetProperty(String, Type, Type[]) 제공합니다.

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

String 가져올 public 속성의 이름을 포함하는 항목입니다.

returnType
Type

속성의 반환 형식입니다.

types
Type[]

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

-또는-

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

반품

PropertyInfo 매개 변수가 지정된 인수 형식과 일치하는 public 속성을 나타내는 개체입니다(있는 경우). 그렇지 않으면 null.

설명

이 메서드는 관리되지 않는 코드에서 관리되는 클래스에 액세스하기 위한 것이며 관리 코드에서 호출해서는 안 됩니다.

메서드는 Type.GetProperty 매개 변수가 지정된 인수 형식과 일치하는 지정된 public 속성을 검색합니다.

적용 대상

GetProperty(String, Type)

COM 개체에 메서드에 대한 버전 독립적 액세스를 GetProperty(String, Type) 제공합니다.

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

String 가져올 public 속성의 이름을 포함하는 항목입니다.

returnType
Type

속성의 반환 형식입니다.

반품

PropertyInfo 지정된 이름을 가진 public 속성을 나타내는 개체입니다(있는 경우). 그렇지 않으면 null.

설명

이 메서드는 관리되지 않는 코드에서 관리되는 클래스에 액세스하기 위한 것이며 관리 코드에서 호출해서는 안 됩니다.

메서드는 Type.GetProperty 지정된 이름과 반환 형식의 public 속성을 검색합니다.

적용 대상

GetProperty(String, Type[])

COM 개체에 메서드에 대한 버전 독립적 액세스를 GetProperty(String, Type[]) 제공합니다.

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

String 가져올 public 속성의 이름을 포함하는 항목입니다.

types
Type[]

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

-또는-

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

반품

PropertyInfo 매개 변수가 지정된 인수 형식과 일치하는 public 속성을 나타내는 개체입니다(있는 경우). 그렇지 않으면 null.

설명

이 메서드는 관리되지 않는 코드에서 관리되는 클래스에 액세스하기 위한 것이며 관리 코드에서 호출해서는 안 됩니다.

메서드는 Type.GetProperty 매개 변수가 지정된 인수 형식과 일치하는 지정된 public 속성을 검색합니다.

적용 대상

GetProperty(String, BindingFlags)

COM 개체에 메서드에 대한 버전 독립적 액세스를 GetProperty(String, BindingFlags) 제공합니다.

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)

COM 개체에 메서드에 대한 버전 독립적 액세스를 GetProperty(String) 제공합니다.

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

String 가져올 public 속성의 이름을 포함하는 항목입니다.

반품

PropertyInfo 지정된 이름을 가진 public 속성을 나타내는 개체입니다(있는 경우). 그렇지 않으면 null.

설명

이 메서드는 관리되지 않는 코드에서 관리되는 클래스에 액세스하기 위한 것이며 관리 코드에서 호출해서는 안 됩니다.

메서드는 Type.GetProperty 지정된 이름의 public 속성을 검색합니다.

적용 대상