TypeDescriptor Methods
.NET Framework 4
The TypeDescriptor type exposes the following members.
| Name | Description | |
|---|---|---|
|
AddAttributes(Object, Attribute[]) | Adds class-level attributes to the target component instance. |
|
AddAttributes(Type, Attribute[]) | Adds class-level attributes to the target component type. |
|
AddEditorTable | Adds an editor table for the given editor base type. |
|
AddProvider(TypeDescriptionProvider, Object) | Adds a type description provider for a single instance of a component. |
|
AddProvider(TypeDescriptionProvider, Type) | Adds a type description provider for a component class. |
|
AddProviderTransparent(TypeDescriptionProvider, Object) | Adds a type description provider for a single instance of a component. |
|
AddProviderTransparent(TypeDescriptionProvider, Type) | Adds a type description provider for a component class. |
|
CreateAssociation | Creates a primary-secondary association between two objects. |
|
CreateDesigner | Creates an instance of the designer associated with the specified component and of the specified type of designer. |
|
CreateEvent(Type, EventDescriptor, Attribute[]) | Creates a new event descriptor that is identical to an existing event descriptor, when passed the existing EventDescriptor. |
|
CreateEvent(Type, String, Type, Attribute[]) | Creates a new event descriptor that is identical to an existing event descriptor by dynamically generating descriptor information from a specified event on a type. |
|
CreateInstance | Creates an object that can substitute for another data type. |
|
CreateProperty(Type, PropertyDescriptor, Attribute[]) | Creates a new property descriptor from an existing property descriptor, using the specified existing PropertyDescriptor and attribute array. |
|
CreateProperty(Type, String, Type, Attribute[]) | Creates and dynamically binds a property descriptor to a type, using the specified property name, type, and attribute array. |
|
Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
|
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
|
GetAssociation | Returns an instance of the type associated with the specified primary object. |
|
GetAttributes(Object) | Returns the collection of attributes for the specified component. |
|
GetAttributes(Type) | Returns a collection of attributes for the specified type of component. |
|
GetAttributes(Object, Boolean) | Returns a collection of attributes for the specified component and a Boolean indicating that a custom type descriptor has been created. |
|
GetClassName(Object) | Returns the name of the class for the specified component using the default type descriptor. |
|
GetClassName(Type) | Returns the name of the class for the specified type. |
|
GetClassName(Object, Boolean) | Returns the name of the class for the specified component using a custom type descriptor. |
|
GetComponentName(Object) | Returns the name of the specified component using the default type descriptor. |
|
GetComponentName(Object, Boolean) | Returns the name of the specified component using a custom type descriptor. |
|
GetConverter(Object) | Returns a type converter for the type of the specified component. |
|
GetConverter(Type) | Returns a type converter for the specified type. |
|
GetConverter(Object, Boolean) | Returns a type converter for the type of the specified component with a custom type descriptor. |
|
GetDefaultEvent(Object) | Returns the default event for the specified component. |
|
GetDefaultEvent(Type) | Returns the default event for the specified type of component. |
|
GetDefaultEvent(Object, Boolean) | Returns the default event for a component with a custom type descriptor. |
|
GetDefaultProperty(Object) | Returns the default property for the specified component. |
|
GetDefaultProperty(Type) | Returns the default property for the specified type of component. |
|
GetDefaultProperty(Object, Boolean) | Returns the default property for the specified component with a custom type descriptor. |
|
GetEditor(Object, Type) | Gets an editor with the specified base type for the specified component. |
|
GetEditor(Type, Type) | Returns an editor with the specified base type for the specified type. |
|
GetEditor(Object, Type, Boolean) | Returns an editor with the specified base type and with a custom type descriptor for the specified component. |
|
GetEvents(Object) | Returns the collection of events for the specified component. |
|
GetEvents(Type) | Returns the collection of events for a specified type of component. |
|
GetEvents(Object, Attribute[]) | Returns the collection of events for a specified component using a specified array of attributes as a filter. |
|
GetEvents(Object, Boolean) | Returns the collection of events for a specified component with a custom type descriptor. |
|
GetEvents(Type, Attribute[]) | Returns the collection of events for a specified type of component using a specified array of attributes as a filter. |
|
GetEvents(Object, Attribute[], Boolean) | Returns the collection of events for a specified component using a specified array of attributes as a filter and using a custom type descriptor. |
|
GetFullComponentName | Returns the fully qualified name of the component. |
|
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
|
GetProperties(Object) | Returns the collection of properties for a specified component. |
|
GetProperties(Type) | Returns the collection of properties for a specified type of component. |
|
GetProperties(Object, Attribute[]) | Returns the collection of properties for a specified component using a specified array of attributes as a filter. |
|
GetProperties(Object, Boolean) | Returns the collection of properties for a specified component using the default type descriptor. |
|
GetProperties(Type, Attribute[]) | Returns the collection of properties for a specified type of component using a specified array of attributes as a filter. |
|
GetProperties(Object, Attribute[], Boolean) | Returns the collection of properties for a specified component using a specified array of attributes as a filter and using a custom type descriptor. |
|
GetProvider(Object) | Returns the type description provider for the specified component. |
|
GetProvider(Type) | Returns the type description provider for the specified type. |
|
GetReflectionType(Object) | Returns a Type that can be used to perform reflection, given an object. |
|
GetReflectionType(Type) | Returns a Type that can be used to perform reflection, given a class type. |
|
GetType | Gets the Type of the current instance. (Inherited from Object.) |
|
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
|
Refresh(Assembly) | Clears the properties and events for the specified assembly from the cache. |
|
Refresh(Module) | Clears the properties and events for the specified module from the cache. |
|
Refresh(Object) | Clears the properties and events for the specified component from the cache. |
|
Refresh(Type) | Clears the properties and events for the specified type of component from the cache. |
|
RemoveAssociation | Removes an association between two objects. |
|
RemoveAssociations | Removes all associations for a primary object. |
|
RemoveProvider(TypeDescriptionProvider, Object) | Removes a previously added type description provider that is associated with the specified object. |
|
RemoveProvider(TypeDescriptionProvider, Type) | Removes a previously added type description provider that is associated with the specified type. |
|
RemoveProviderTransparent(TypeDescriptionProvider, Object) | Removes a previously added type description provider that is associated with the specified object. |
|
RemoveProviderTransparent(TypeDescriptionProvider, Type) | Removes a previously added type description provider that is associated with the specified type. |
|
SortDescriptorArray | Sorts descriptors using the name of the descriptor. |
|
ToString | Returns a string that represents the current object. (Inherited from Object.) |