ComClassAttribute Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the ComClassAttribute
class.
Overloads
ComClassAttribute() |
Initializes a new instance of the |
ComClassAttribute(String) |
Initializes a new instance of the |
ComClassAttribute(String, String) |
Initializes a new instance of the |
ComClassAttribute(String, String, String) |
Initializes a new instance of the |
ComClassAttribute()
- Source:
- ComClassAttribute.vb
- Source:
- ComClassAttribute.vb
- Source:
- ComClassAttribute.vb
Initializes a new instance of the ComClassAttribute
class.
public:
ComClassAttribute();
public ComClassAttribute ();
Public Sub New ()
Remarks
Use the constructor for the ComClassAttribute
class to set the ClassID
, InterfaceID
, or EventID
properties when applying the ComClassAttribute
to a class.
See also
- System.Runtime.InteropServices
- Attributes (Visual Basic)
- Walkthrough: Creating COM Objects with Visual Basic
- Object Lifetime: How Objects Are Created and Destroyed
Applies to
ComClassAttribute(String)
- Source:
- ComClassAttribute.vb
- Source:
- ComClassAttribute.vb
- Source:
- ComClassAttribute.vb
Initializes a new instance of the ComClassAttribute
class.
public:
ComClassAttribute(System::String ^ _ClassID);
public ComClassAttribute (string? _ClassID);
public ComClassAttribute (string _ClassID);
new Microsoft.VisualBasic.ComClassAttribute : string -> Microsoft.VisualBasic.ComClassAttribute
Public Sub New (_ClassID As String)
Parameters
- _ClassID
- String
Initializes the value of the ClassID
property that is used to uniquely identify a class.
Remarks
Use the constructor for the ComClassAttribute
class to set the ClassID
, InterfaceID
, or EventID
properties when applying the ComClassAttribute
to a class.
See also
- System.Runtime.InteropServices
- Attributes (Visual Basic)
- Walkthrough: Creating COM Objects with Visual Basic
- Object Lifetime: How Objects Are Created and Destroyed
Applies to
ComClassAttribute(String, String)
- Source:
- ComClassAttribute.vb
- Source:
- ComClassAttribute.vb
- Source:
- ComClassAttribute.vb
Initializes a new instance of the ComClassAttribute
class.
public:
ComClassAttribute(System::String ^ _ClassID, System::String ^ _InterfaceID);
public ComClassAttribute (string? _ClassID, string? _InterfaceID);
public ComClassAttribute (string _ClassID, string _InterfaceID);
new Microsoft.VisualBasic.ComClassAttribute : string * string -> Microsoft.VisualBasic.ComClassAttribute
Public Sub New (_ClassID As String, _InterfaceID As String)
Parameters
- _ClassID
- String
Initializes the value of the ClassID
property that is used to uniquely identify a class.
- _InterfaceID
- String
Initializes the value of the InterfaceID
property that is used to uniquely identify an interface.
Remarks
Use the constructor for the ComClassAttribute
class to set the ClassID
, InterfaceID
, or EventID
properties when applying the ComClassAttribute
to a class.
See also
- System.Runtime.InteropServices
- Attributes (Visual Basic)
- Walkthrough: Creating COM Objects with Visual Basic
- Object Lifetime: How Objects Are Created and Destroyed
Applies to
ComClassAttribute(String, String, String)
- Source:
- ComClassAttribute.vb
- Source:
- ComClassAttribute.vb
- Source:
- ComClassAttribute.vb
Initializes a new instance of the ComClassAttribute
class.
public:
ComClassAttribute(System::String ^ _ClassID, System::String ^ _InterfaceID, System::String ^ _EventId);
public ComClassAttribute (string? _ClassID, string? _InterfaceID, string? _EventId);
public ComClassAttribute (string _ClassID, string _InterfaceID, string _EventId);
new Microsoft.VisualBasic.ComClassAttribute : string * string * string -> Microsoft.VisualBasic.ComClassAttribute
Public Sub New (_ClassID As String, _InterfaceID As String, _EventId As String)
Parameters
- _ClassID
- String
Initializes the value of the ClassID
property that is used to uniquely identify a class.
- _InterfaceID
- String
Initializes the value of the InterfaceID
property that is used to uniquely identify an interface.
- _EventId
- String
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.
See also
- System.Runtime.InteropServices
- Attributes (Visual Basic)
- Walkthrough: Creating COM Objects with Visual Basic
- Object Lifetime: How Objects Are Created and Destroyed