Name

ComImportAttribute

Synopsis

This attribute indicates that the type decorated by this attribute is in fact an unmanaged type defined in a previously published type library and should be treated differently internally to support that.

This attribute is necessary only if the .NET type definition — the class definition in VB.NET — is merely a “shim” for interacting with the unmanaged version. In most cases, .NET programmers only use this type when interacting with existing COM APIs, such as when building Explorer Shell Extensions.

Public NotInheritable Class ComImportAttribute : Inherits Attribute
' Public Constructors
   Public Sub New() 
End Class

Hierarchy

System.ObjectSystem.Attribute ComImportAttribute

Valid On

Class, Interface

Get VB.NET Core Classes in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.