Muokkaa

Jaa


ClassInterfaceAttribute Constructors

Definition

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