_Type.GetProperty 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
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
매개 변수
- 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
매개 변수
- 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
매개 변수
- 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
매개 변수
- 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
매개 변수
- 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
매개 변수
반품
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
매개 변수
반품
PropertyInfo 지정된 이름을 가진 public 속성을 나타내는 개체입니다(있는 경우). 그렇지 않으면 null.
설명
이 메서드는 관리되지 않는 코드에서 관리되는 클래스에 액세스하기 위한 것이며 관리 코드에서 호출해서는 안 됩니다.
메서드는 Type.GetProperty 지정된 이름의 public 속성을 검색합니다.