TypeDescriptionProvider.GetExtendedTypeDescriptorFromRegisteredType Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Returns
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 GetTypeDescriptor method does not return a type descriptor that provides these extra extended properties. GetExtendedTypeDescriptor 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.