RuntimeReflectionExtensions.GetRuntimeProperty(Type, String) 메서드

정의

지정된 속성을 나타내는 개체를 검색합니다.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Reflection::PropertyInfo ^ GetRuntimeProperty(Type ^ type, System::String ^ name);
public static System.Reflection.PropertyInfo GetRuntimeProperty (this Type type, string name);
public static System.Reflection.PropertyInfo? GetRuntimeProperty (this Type type, string name);
static member GetRuntimeProperty : Type * string -> System.Reflection.PropertyInfo
<Extension()>
Public Function GetRuntimeProperty (type As Type, name As String) As PropertyInfo

매개 변수

type
Type

속성이 포함된 형식입니다.

name
String

속성의 이름입니다.

반환

PropertyInfo

지정된 속성을 나타내는 개체이며 속성이 없는 경우 null을 반환합니다.

예외

type이(가) null인 경우

또는

name이(가) null인 경우

type이(가) RuntimeType가 아닌 경우

요청한 이름의 속성이 두 개 이상 있습니다.

적용 대상

추가 정보