TypeDescriptor.GetReflectionType Metódus

Definíció

Olyan értéket Type ad vissza, amely tükröződés végrehajtására használható.

Túlterhelések

Name Description
GetReflectionType(Object)

Olyan értéket Type ad vissza, amely egy objektumra adott visszaverődés végrehajtására használható.

GetReflectionType(Type)

Olyan értéket Type ad vissza, amely egy osztálytípus alapján tükrözés végrehajtására használható.

GetReflectionType(Object)

Forrás:
TypeDescriptor.cs
Forrás:
TypeDescriptor.cs
Forrás:
TypeDescriptor.cs
Forrás:
TypeDescriptor.cs
Forrás:
TypeDescriptor.cs

Olyan értéket Type ad vissza, amely egy objektumra adott visszaverődés végrehajtására használható.

public:
 static Type ^ GetReflectionType(System::Object ^ instance);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("GetReflectionType is not trim compatible because the Type of object cannot be statically discovered.")]
public static Type GetReflectionType(object instance);
public static Type GetReflectionType(object instance);
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("GetReflectionType is not trim compatible because the Type of object cannot be statically discovered.")>]
static member GetReflectionType : obj -> Type
static member GetReflectionType : obj -> Type
Public Shared Function GetReflectionType (instance As Object) As Type

Paraméterek

instance
Object

A célösszetevő egy példánya.

Válaszok

A Type a megadott objektumhoz.

Attribútumok

Kivételek

instance az null.

Megjegyzések

A GetReflectionType metódus a metódus alacsony szintű verziója GetTypeDescriptor . GetReflectionType általában akkor használatos, ha egy objektumon normál tükröződést végez, ha nem található hozzá egyéni típusleíró.

Lásd még

A következőre érvényes:

GetReflectionType(Type)

Forrás:
TypeDescriptor.cs
Forrás:
TypeDescriptor.cs
Forrás:
TypeDescriptor.cs
Forrás:
TypeDescriptor.cs
Forrás:
TypeDescriptor.cs

Olyan értéket Type ad vissza, amely egy osztálytípus alapján tükrözés végrehajtására használható.

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

Paraméterek

type
Type

A Type célösszetevő.

Válaszok

A Type megadott osztály egy része.

Kivételek

type az null.

Megjegyzések

A GetReflectionType metódus a metódus alacsony szintű verziója GetTypeDescriptor . GetReflectionType általában akkor használatos, ha egy osztályon normál tükröződést végez, ha nem található hozzá egyéni típusleíró.

Lásd még

A következőre érvényes: