ClassInterfaceAttribute 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 ClassInterfaceAttribute class.
Overloads
ClassInterfaceAttribute(Int16) |
Initializes a new instance of the ClassInterfaceAttribute class with the specified ClassInterfaceType enumeration value. |
ClassInterfaceAttribute(ClassInterfaceType) |
Initializes a new instance of the ClassInterfaceAttribute class with the specified ClassInterfaceType enumeration member. |
ClassInterfaceAttribute(Int16)
- Source:
- ClassInterfaceAttribute.cs
- Source:
- ClassInterfaceAttribute.cs
- Source:
- ClassInterfaceAttribute.cs
Initializes a new instance of the ClassInterfaceAttribute class with the specified ClassInterfaceType enumeration value.
public:
ClassInterfaceAttribute(short classInterfaceType);
public ClassInterfaceAttribute (short classInterfaceType);
new System.Runtime.InteropServices.ClassInterfaceAttribute : int16 -> System.Runtime.InteropServices.ClassInterfaceAttribute
Public Sub New (classInterfaceType As Short)
Parameters
- classInterfaceType
- Int16
Describes the type of interface that is generated for a class.
Remarks
This constructor takes an underlying 16-bit signed integer that represents each ClassInterfaceType enumeration member. The Tlbimp.exe (Type Library Importer) uses this constructor.
See also
Applies to
ClassInterfaceAttribute(ClassInterfaceType)
- Source:
- ClassInterfaceAttribute.cs
- Source:
- ClassInterfaceAttribute.cs
- Source:
- ClassInterfaceAttribute.cs
Initializes a new instance of the ClassInterfaceAttribute class with the specified ClassInterfaceType enumeration member.
public:
ClassInterfaceAttribute(System::Runtime::InteropServices::ClassInterfaceType classInterfaceType);
public ClassInterfaceAttribute (System.Runtime.InteropServices.ClassInterfaceType classInterfaceType);
new System.Runtime.InteropServices.ClassInterfaceAttribute : System.Runtime.InteropServices.ClassInterfaceType -> System.Runtime.InteropServices.ClassInterfaceAttribute
Public Sub New (classInterfaceType As ClassInterfaceType)
Parameters
- classInterfaceType
- ClassInterfaceType
One of the ClassInterfaceType values that describes the type of interface that is generated for a class.
Remarks
For readable code that is less prone to error, always use this constructor.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Bald verfügbar: Im Laufe des Jahres 2024 werden wir GitHub-Issues stufenweise als Feedbackmechanismus für Inhalte abbauen und durch ein neues Feedbacksystem ersetzen. Weitere Informationen finden Sie unterFeedback senden und anzeigen für