TypeDescriptor.GetReflectionType Methode
Definition
Überlädt
GetReflectionType(Object) |
Gibt einen Type zurück, der zum Durchführen der Reflektion bei Angabe eines Objekts verwendet werden kann.Returns a Type that can be used to perform reflection, given an object. |
GetReflectionType(Type) |
Gibt einen Type zurück, der zum Durchführen der Reflektion bei Angabe eines Klassentyps verwendet werden kann.Returns a Type that can be used to perform reflection, given a class type. |
GetReflectionType(Object)
public:
static Type ^ GetReflectionType(System::Object ^ instance);
public static Type GetReflectionType (object instance);
static member GetReflectionType : obj -> Type
Public Shared Function GetReflectionType (instance As Object) As Type
Parameter
- instance
- Object
Eine Instanz der Zielkomponente.An instance of the target component.
Gibt zurück
Ein Type für das angegebene Objekt.A Type for the specified object.
Ausnahmen
instance
ist null
.instance
is null
.
Hinweise
Die GetReflectionType -Methode ist eine Version der-Methode auf niedriger Ebene GetTypeDescriptor .The GetReflectionType method is a low-level version of the GetTypeDescriptor method. GetReflectionType wird normalerweise verwendet, um Standard Reflektion für ein Objekt auszuführen, wenn kein benutzerdefinierter Typdeskriptor gefunden werden kann.GetReflectionType is typically used to perform standard reflection against an object when no custom type descriptor can be located for it.
Weitere Informationen
Gilt für:
GetReflectionType(Type)
public:
static Type ^ GetReflectionType(Type ^ type);
public static Type GetReflectionType (Type type);
static member GetReflectionType : Type -> Type
Public Shared Function GetReflectionType (type As Type) As Type
Parameter
Gibt zurück
Ein Type der angegebenen Klasse.A Type of the specified class.
Ausnahmen
type
ist null
.type
is null
.
Hinweise
Die GetReflectionType -Methode ist eine Version der-Methode auf niedriger Ebene GetTypeDescriptor .The GetReflectionType method is a low-level version of the GetTypeDescriptor method. GetReflectionType wird normalerweise verwendet, um Standard Reflektion für eine Klasse auszuführen, wenn kein benutzerdefinierter Typdeskriptor gefunden werden kann.GetReflectionType is typically used to perform standard reflection against a class when no custom type descriptor can be located for it.