Visual Basic Language Reference  

ComClassAttribute Constructor

Initializes a new instance of the ComClassAttribute class.

Public Sub New()

-or-

Public Sub New( _
   ByVal _ClassID As String _
)

-or-

Public Sub New( _
   ByVal _ClassID As String, _
   ByVal _InterfaceID As String _
)

-or-

Public Sub New( _
   ByVal _ClassID As String, _
   ByVal _InterfaceID As String, _ 
   ByVal _EventID As String _
)

Parameters

_ClassID
Initializes the value of the ClassID property that is used to uniquely identify a class.
_InterfaceID
Initializes the value of the InterfaceID property that is used to uniquely identify an interface.
_EventID
Initializes the value of the EventID property that is used to uniquely identify an event.

Remarks

The constructor for the ComClassAttribute class allows you to set the ClassID, InterfaceID, or EventID properties when applying the ComClassAttribute to a class.

See Also

Attributes | ComClassAttribute Class | Attributes Used in Visual Basic .NET | System.Runtime.InteropServices Namespace | Object Lifetime: How Objects Are Created and Destroyed