Condividi tramite


TypeDescriptionProvider.GetExtendedTypeDescriptorFromRegisteredType Metodo

Definizione

Restituisce un descrittore di tipo personalizzato esteso per l'oggetto specificato.

public:
 virtual System::ComponentModel::ICustomTypeDescriptor ^ GetExtendedTypeDescriptorFromRegisteredType(System::Object ^ instance);
public virtual System.ComponentModel.ICustomTypeDescriptor GetExtendedTypeDescriptorFromRegisteredType (object instance);
abstract member GetExtendedTypeDescriptorFromRegisteredType : obj -> System.ComponentModel.ICustomTypeDescriptor
override this.GetExtendedTypeDescriptorFromRegisteredType : obj -> System.ComponentModel.ICustomTypeDescriptor
Public Overridable Function GetExtendedTypeDescriptorFromRegisteredType (instance As Object) As ICustomTypeDescriptor

Parametri

instance
Object

Restituisce

Commenti

Un descrittore di tipo esteso è un descrittore di tipo personalizzato che offre proprietà che altri oggetti hanno aggiunto a questo oggetto, ma non sono effettivamente definiti nell'oggetto. Ad esempio, nel modello di componente .NET Framework, gli oggetti che implementano l'interfaccia IExtenderProvider possono "allegare" proprietà ad altri oggetti che risiedono nello stesso contenitore logico. Il metodo GetTypeDescriptor non restituisce un descrittore di tipo che fornisce queste proprietà estese aggiuntive. GetExtendedTypeDescriptor restituisce il set di queste proprietà estese. TypeDescriptor unisce automaticamente i risultati di queste due raccolte di proprietà. Si noti che anche se il modello di componente .NET Framework supporta solo proprietà estese, questa API può essere usata anche per gli attributi estesi e gli eventi, se il provider di descrizione del tipo lo supporta.

Si applica a