TypeDescriptor.GetReflectionType Metode

Definisi

Mengembalikan yang Type dapat digunakan untuk melakukan pantulan.

Overload

Nama Deskripsi
GetReflectionType(Object)

Mengembalikan yang Type dapat digunakan untuk melakukan pantulan, diberikan objek.

GetReflectionType(Type)

Mengembalikan yang Type dapat digunakan untuk melakukan pantulan, dengan jenis kelas.

GetReflectionType(Object)

Sumber:
TypeDescriptor.cs
Sumber:
TypeDescriptor.cs
Sumber:
TypeDescriptor.cs
Sumber:
TypeDescriptor.cs
Sumber:
TypeDescriptor.cs

Mengembalikan yang Type dapat digunakan untuk melakukan pantulan, diberikan objek.

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

Parameter

instance
Object

Instans komponen target.

Mengembalikan

Type untuk objek yang ditentukan.

Atribut

Pengecualian

instance adalah null.

Keterangan

Metode GetReflectionType ini adalah versi GetTypeDescriptor metode tingkat rendah. GetReflectionType biasanya digunakan untuk melakukan refleksi standar terhadap objek ketika tidak ada deskriptor jenis kustom yang dapat ditemukan untuk objek tersebut.

Lihat juga

Berlaku untuk

GetReflectionType(Type)

Sumber:
TypeDescriptor.cs
Sumber:
TypeDescriptor.cs
Sumber:
TypeDescriptor.cs
Sumber:
TypeDescriptor.cs
Sumber:
TypeDescriptor.cs

Mengembalikan yang Type dapat digunakan untuk melakukan pantulan, dengan jenis kelas.

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

type
Type

Komponen Type target.

Mengembalikan

Kelas Type yang ditentukan.

Pengecualian

type adalah null.

Keterangan

Metode GetReflectionType ini adalah versi GetTypeDescriptor metode tingkat rendah. GetReflectionType biasanya digunakan untuk melakukan refleksi standar terhadap kelas ketika tidak ada deskriptor jenis kustom yang dapat ditemukan untuk itu.

Lihat juga

Berlaku untuk