Uređivanje

Dijeli putem


TypeDescriptionProvider.GetExtendedTypeDescriptorFromRegisteredType Method

Definition

Returns an extended custom type descriptor for the given object.

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

Parameters

instance
Object

The object for which to get the extended type descriptor.

Returns

An ICustomTypeDescriptor that can provide extended metadata for the object.

Remarks

An extended type descriptor is a custom type descriptor that offers properties that other objects have added to this object, but are not actually defined on the object. For example, in the .NET Framework Component Model, objects that implement the interface IExtenderProvider can "attach" properties to other objects that reside in the same logical container. The GetTypeDescriptorFromRegisteredType method does not return a type descriptor that provides these extra extended properties. GetExtendedTypeDescriptorFromRegisteredType returns the set of these extended properties. TypeDescriptor will automatically merge the results of these two property collections. Note that while the .NET Framework component model only supports extended properties this API can be used for extended attributes and events as well, if the type description provider supports it.

Applies to