Export (0) Print
Expand All

TypeDescriptor.ComObjectType Property

Gets the type of the Component Object Model (COM) object represented by the target component.

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

public static Type ComObjectType { get; }
/** @property */
public static Type get_ComObjectType ()

public static function get ComObjectType () : Type

Not applicable.

Property Value

The Type of the COM object represented by this component, or a null reference (Nothing in Visual Basic) for non-COM objects.

The ComObjectType property returns a type that can be passed to the AddProvider(TypeDescriptionProvider,Type) method to define a type description provider for COM types.

The ComObjectType property and other members in this class replace the functionality in the obsolete IComNativeDescriptorHandler interface. To implement a mapping layer between a COM object and TypeDescriptor, add a TypeDescriptionProvider to handle type ComObjectType.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, 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

Community Additions

ADD
Show:
© 2014 Microsoft