A Pseudo attribute used to indicate that a class or interface definition was imported from a COM type library. The runtime uses this flag to know how to activate and marshal the type.
Object
Attribute
ComImportAttribute
[Visual Basic] Public Class ComImportAttribute Inherits Attribute [C#] public class ComImportAttribute : Attribute [C++] public __gc class ComImportAttribute : public Attribute [JScript] public class ComImportAttribute extends Attribute
Can be used to attribute classes or interfaces.
Namespace: System.Runtime.InteropServices
Assembly: mscorlib.dll
ComImportAttribute Members | System.Runtime.InteropServices Namespace