Indicates whether a type is marked with the
ComImportAttribute, or derives from a type marked with the
ComImportAttribute and shares the same GUID as the parent.
Namespace: System.Runtime.InteropServices
Assembly: mscorlib (in mscorlib.dll)

Syntax
Visual Basic (Declaration)
Public Overridable Function TypeRepresentsComType ( _
type As Type _
) As Boolean
Dim instance As RegistrationServices
Dim type As Type
Dim returnValue As Boolean
returnValue = instance.TypeRepresentsComType(type)
public virtual bool TypeRepresentsComType (
Type type
)
public:
virtual bool TypeRepresentsComType (
Type^ type
)
public boolean TypeRepresentsComType (
Type type
)
public function TypeRepresentsComType (
type : Type
) : boolean
Parameters
- type
The type to check for being a COM type.
Return Value
true if a type is marked with the
ComImportAttribute, or derives from a type marked with the
ComImportAttribute and shares the same GUID as the parent; otherwise
false.

Platforms
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.

Version Information
.NET Framework
Supported in: 3.0, 2.0, 1.1, 1.0

See Also