RuntimeReflectionExtensions.GetRuntimeProperty(Type, String) Method

Definition

지정된 된 속성을 나타내는 개체를 검색 합니다.Retrieves an object that represents a specified property.

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);
static member GetRuntimeProperty : Type * string -> System.Reflection.PropertyInfo
<Extension()>
Public Function GetRuntimeProperty (type As Type, name As String) As PropertyInfo

Parameters

type
Type

속성을 포함 하는 형식입니다.The type that contains the property.

name
String

속성의 이름입니다.The name of the property.

Returns

PropertyInfo

지정된 속성을 나타내는 개체이며 속성이 없는 경우 null을 반환합니다.An object that represents the specified property, or null if the property is not found.

Exceptions

typenull입니다.type is null.

또는-or-

namenull입니다.name is null.

typeRuntimeType가 아닌 경우type is not a RuntimeType.

요청한 이름의 속성이 두 개 이상 있습니다.More than one property with the requested name was found.

Applies to

See also