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.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om