Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
Previous Versions
.NET Framework 2.0

  Switch on low bandwidth view
This page is specific to
Microsoft Visual Studio 2005/.NET Framework 2.0

Other versions are also available for the following:
ICustomTypeDescriptor Interface
Provides an interface that supplies dynamic custom type information for an object.

Namespace: System.ComponentModel
Assembly: System (in system.dll)

Visual Basic (Declaration)
Public Interface ICustomTypeDescriptor
Visual Basic (Usage)
Dim instance As ICustomTypeDescriptor
C#
public interface ICustomTypeDescriptor
C++
public interface class ICustomTypeDescriptor
J#
public interface ICustomTypeDescriptor
JScript
public interface ICustomTypeDescriptor
XAML
Not applicable.

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.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0

.NET Compact Framework

Supported in: 2.0, 1.0

XNA Framework

Supported in: 1.0
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker