Export (0) Print
Expand All
0 out of 2 rated this helpful - Rate this topic

ICustomTypeDescriptor Interface

Provides an interface that supplies dynamic custom type information for an object.

Namespace:  System.ComponentModel
Assembly:  System (in System.dll)
public interface ICustomTypeDescriptor

The ICustomTypeDescriptor type exposes the following members.

  NameDescription
Public methodSupported by the XNA FrameworkGetAttributesReturns a collection of custom attributes for this instance of a component.
Public methodSupported by the XNA FrameworkGetClassNameReturns the class name of this instance of a component.
Public methodSupported by the XNA FrameworkGetComponentNameReturns the name of this instance of a component.
Public methodSupported by the XNA FrameworkGetConverterReturns a type converter for this instance of a component.
Public methodSupported by the XNA FrameworkGetDefaultEventReturns the default event for this instance of a component.
Public methodSupported by the XNA FrameworkGetDefaultPropertyReturns the default property for this instance of a component.
Public methodSupported by the XNA FrameworkGetEditorReturns an editor of the specified type for this instance of a component.
Public methodSupported by the XNA FrameworkGetEvents()Returns the events for this instance of a component.
Public methodSupported by the XNA FrameworkGetEvents(Attribute[])Returns the events for this instance of a component using the specified attribute array as a filter.
Public methodSupported by the XNA FrameworkGetProperties()Returns the properties for this instance of a component.
Public methodSupported by the XNA FrameworkGetProperties(Attribute[])Returns the properties for this instance of a component using the attribute array as a filter.
Public methodSupported by the XNA FrameworkGetPropertyOwnerReturns an object that contains the property described by the specified property descriptor.
Top

The ICustomTypeDescriptor interface allows an object to provide type information about itself. Typically, this interface is used when an object needs dynamic type information. In contrast, the TypeDescriptor class provides static type information that is obtained from metadata.

For example, ICustomTypeDescriptor is used in the .NET Framework to provide type information for COM objects. COM objects do not support properties or attributes. Therefore, the .NET Framework uses ICustomTypeDescriptor to implement properties and attributes for COM objects.

To provide dynamic custom type information, a class can implement ICustomTypeDescriptor or derive from the CustomTypeDescriptor class, which provides a simple implementation of this interface.

NoteNote

There is no design-time support for data binding to objects that implement the ICustomTypeDescriptor interface. In addition, when binding to a runtime instance of ICustomTypeDescriptor, the public properties of the underlying type are ignored.

.NET Framework

Supported in: 4.5.1, 4.5, 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows Phone 8.1, Windows Phone 8, Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.