TypeDescriptionProvider.GetReflectionType Metodo

Definizione

Esegue la reflection normale su un oggetto .

Overload

Nome Descrizione
GetReflectionType(Type)

Esegue la reflection normale su un tipo.

GetReflectionType(Type, Object)

Esegue la reflection normale sull'oggetto specificato con il tipo specificato.

GetReflectionType(Object)

Esegue la reflection normale sull'oggetto specificato.

GetReflectionType(Type)

Origine:
TypeDescriptionProvider.cs
Origine:
TypeDescriptionProvider.cs
Origine:
TypeDescriptionProvider.cs
Origine:
TypeDescriptionProvider.cs
Origine:
TypeDescriptionProvider.cs

Esegue la reflection normale su un tipo.

public:
 Type ^ GetReflectionType(Type ^ objectType);
public Type GetReflectionType(Type objectType);
member this.GetReflectionType : Type -> Type
Public Function GetReflectionType (objectType As Type) As Type

Parametri

objectType
Type

Tipo di oggetto per il quale recuperare l'oggetto IReflect.

Valori restituiti

Tipo di reflection per questo objectTypeoggetto .

Eccezioni

objectType è null.

Commenti

Il GetReflectionType metodo è una versione di livello inferiore del GetTypeDescriptor metodo . Se non è possibile individuare alcun descrittore di tipo personalizzato per un oggetto, GetReflectionType viene chiamato per eseguire la normale reflection sull'oggetto.

Utilizzare questo overload del metodo se è stato chiamato un membro descrittore di tipo che usa un tipo anziché un'istanza.

Vedi anche

Si applica a

GetReflectionType(Type, Object)

Origine:
TypeDescriptionProvider.cs
Origine:
TypeDescriptionProvider.cs
Origine:
TypeDescriptionProvider.cs
Origine:
TypeDescriptionProvider.cs
Origine:
TypeDescriptionProvider.cs

Esegue la reflection normale sull'oggetto specificato con il tipo specificato.

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

Parametri

objectType
Type

Tipo di oggetto per il quale recuperare l'oggetto IReflect.

instance
Object

Istanza del tipo. Può essere null.

Valori restituiti

Tipo di reflection per questo objectTypeoggetto .

Commenti

Il GetReflectionType metodo è una versione di livello inferiore del GetTypeDescriptor metodo . Se non è possibile individuare alcun descrittore di tipo personalizzato per un oggetto, GetReflectionType viene chiamato per eseguire la normale reflection sull'oggetto.

Note per gli eredi

Questo metodo viene prototipo come virtuale per impostazione predefinita restituisce objectType se non è stato passato alcun provider padre. Se è stato passato un provider padre, questo metodo richiamerà il metodo del GetReflectionType provider padre.

Vedi anche

Si applica a

GetReflectionType(Object)

Origine:
TypeDescriptionProvider.cs
Origine:
TypeDescriptionProvider.cs
Origine:
TypeDescriptionProvider.cs
Origine:
TypeDescriptionProvider.cs
Origine:
TypeDescriptionProvider.cs

Esegue la reflection normale sull'oggetto specificato.

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

Parametri

instance
Object

Istanza del tipo (non deve essere null).

Valori restituiti

Tipo di reflection per questo instanceoggetto .

Attributi

Eccezioni

instance è null.

Commenti

Il GetReflectionType metodo è una versione di livello inferiore del GetTypeDescriptor metodo . Se non è possibile individuare alcun descrittore di tipo personalizzato per un oggetto, GetReflectionType viene chiamato per eseguire la normale reflection sull'oggetto.

Utilizzare questo overload del metodo se è stato chiamato un membro descrittore di tipo che usa un'istanza anziché un tipo.

Vedi anche

Si applica a