RuntimeReflectionExtensions.GetRuntimeProperty(Type, String) Yöntem

Tanım

Belirtilen özelliği temsil eden bir nesneyi alır.

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

Parametreler

type
Type

özelliğini içeren tür.

name
String

Özelliğin adı.

Döndürülenler

Belirtilen özelliği temsil eden veya null özellik bulunamazsa bir nesne.

Özel durumlar

type, null değeridir.

-veya-

name, null değeridir.

type bir RuntimeTypedeğildir.

İstenen ada sahip birden fazla özellik bulundu.

Şunlara uygulanır

Ayrıca bkz.