TypeDescriptionProvider.GetReflectionType Metode
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
Melakukan refleksi normal terhadap objek.
Overload
| Nama | Deskripsi |
|---|---|
| GetReflectionType(Type) |
Melakukan pantulan normal terhadap jenis. |
| GetReflectionType(Type, Object) |
Melakukan refleksi normal terhadap objek yang diberikan dengan jenis yang diberikan. |
| GetReflectionType(Object) |
Melakukan refleksi normal terhadap objek yang diberikan. |
GetReflectionType(Type)
- Sumber:
- TypeDescriptionProvider.cs
- Sumber:
- TypeDescriptionProvider.cs
- Sumber:
- TypeDescriptionProvider.cs
- Sumber:
- TypeDescriptionProvider.cs
- Sumber:
- TypeDescriptionProvider.cs
Melakukan pantulan normal terhadap jenis.
public:
Type ^ GetReflectionType(Type ^ objectType);
public Type GetReflectionType(Type objectType);
member this.GetReflectionType : Type -> Type
Public Function GetReflectionType (objectType As Type) As Type
Parameter
Mengembalikan
Jenis refleksi untuk ini objectType.
Pengecualian
objectType adalah null.
Keterangan
Metode GetReflectionType ini adalah versi metode tingkat yang GetTypeDescriptor lebih rendah. Jika tidak ada deskriptor jenis kustom yang dapat ditemukan untuk objek, GetReflectionType dipanggil untuk melakukan pantulan normal terhadap objek.
Gunakan metode ini kelebihan beban jika Anda telah memanggil anggota deskriptor jenis yang menggunakan jenis alih-alih instans.
Lihat juga
Berlaku untuk
GetReflectionType(Type, Object)
- Sumber:
- TypeDescriptionProvider.cs
- Sumber:
- TypeDescriptionProvider.cs
- Sumber:
- TypeDescriptionProvider.cs
- Sumber:
- TypeDescriptionProvider.cs
- Sumber:
- TypeDescriptionProvider.cs
Melakukan refleksi normal terhadap objek yang diberikan dengan jenis yang diberikan.
public:
virtual Type ^ GetReflectionType(Type ^ objectType, System::Object ^ instance);
public virtual Type GetReflectionType(Type objectType, object? instance);
public virtual Type GetReflectionType(Type objectType, object instance);
abstract member GetReflectionType : Type * obj -> Type
override this.GetReflectionType : Type * obj -> Type
Public Overridable Function GetReflectionType (objectType As Type, instance As Object) As Type
Parameter
- instance
- Object
Instans jenis. Bisa jadi null.
Mengembalikan
Jenis refleksi untuk ini objectType.
Keterangan
Metode GetReflectionType ini adalah versi metode tingkat yang GetTypeDescriptor lebih rendah. Jika tidak ada deskriptor jenis kustom yang dapat ditemukan untuk objek, GetReflectionType dipanggil untuk melakukan pantulan normal terhadap objek.
Catatan Bagi Inheritor
Metode ini diprototi sebagai virtual, dan secara default mengembalikan objectType jika tidak ada penyedia induk yang diteruskan. Jika penyedia induk diteruskan, metode ini akan memanggil metode penyedia GetReflectionType induk.
Lihat juga
Berlaku untuk
GetReflectionType(Object)
- Sumber:
- TypeDescriptionProvider.cs
- Sumber:
- TypeDescriptionProvider.cs
- Sumber:
- TypeDescriptionProvider.cs
- Sumber:
- TypeDescriptionProvider.cs
- Sumber:
- TypeDescriptionProvider.cs
Melakukan refleksi normal terhadap objek yang diberikan.
public:
Type ^ GetReflectionType(System::Object ^ instance);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("GetReflectionType is not trim compatible because the Type of object cannot be statically discovered.")]
public Type GetReflectionType(object instance);
public Type GetReflectionType(object instance);
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("GetReflectionType is not trim compatible because the Type of object cannot be statically discovered.")>]
member this.GetReflectionType : obj -> Type
member this.GetReflectionType : obj -> Type
Public Function GetReflectionType (instance As Object) As Type
Parameter
- instance
- Object
Instans jenis (tidak boleh null).
Mengembalikan
Jenis refleksi untuk ini instance.
- Atribut
Pengecualian
instance adalah null.
Keterangan
Metode GetReflectionType ini adalah versi metode tingkat yang GetTypeDescriptor lebih rendah. Jika tidak ada deskriptor jenis kustom yang dapat ditemukan untuk objek, GetReflectionType dipanggil untuk melakukan pantulan normal terhadap objek.
Gunakan metode ini kelebihan beban jika Anda telah memanggil anggota deskriptor jenis yang menggunakan instans alih-alih jenis.