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

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

Requirements

Namespace: Microsoft.VisualBasic

Class: ComClassAttribute

Assembly: Visual Basic Runtime Library (in Microsoft.VisualBasic.dll)

See Also

Tasks

Walkthrough: Creating COM Objects with Visual Basic 2005

Reference

ComClassAttribute Class
System.Runtime.InteropServices

Concepts

Attributes Used in Visual Basic
Object Lifetime: How Objects Are Created and Destroyed

Other Resources

Attributes in Visual Basic