RuntimeReflectionExtensions.GetRuntimeProperty(Type, String) Metódus
Definíció
Fontos
Egyes információk olyan, kiadás előtti termékekre vonatkoznak, amelyek a kiadásig még jelentősen módosulhatnak. A Microsoft nem vállal kifejezett vagy törvényi garanciát az itt megjelenő információért.
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 nem egy RuntimeType.
A rendszer egynél több, a kért névvel rendelkező tulajdonságot talált.