RuntimeReflectionExtensions.GetRuntimeProperty(Type, String) Metódus

Definíció

Egy adott tulajdonságot képviselő objektumot kér le.

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

Paraméterek

type
Type

A tulajdonságot tartalmazó típus.

name
String

A tulajdonság neve.

Válaszok

A megadott tulajdonságot képviselő objektum, vagy null ha a tulajdonság nem található.

Kivételek

type az null.

-vagy-

name az null.

type nem egy RuntimeType.

A rendszer egynél több, a kért névvel rendelkező tulajdonságot talált.

A következőre érvényes:

Lásd még