TypeRepresentsComType Method

RegistrationServices.TypeRepresentsComType Method (Type)

 

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)

public virtual bool TypeRepresentsComType(
	Type type
)

Parameters

type
Type: System.Type

The type to check for being a COM type.

Return Value

Type: System.Boolean

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.

.NET Framework
Available since 1.1
Return to top
Show:
© 2016 Microsoft