ClassInterfaceAttribute 构造函数

定义

初始化 ClassInterfaceAttribute 类的新实例。Initializes a new instance of the ClassInterfaceAttribute class.

重载

ClassInterfaceAttribute(Int16)

使用指定的 ClassInterfaceAttribute 枚举值初始化 ClassInterfaceType 类的新实例。Initializes a new instance of the ClassInterfaceAttribute class with the specified ClassInterfaceType enumeration value.

ClassInterfaceAttribute(ClassInterfaceType)

使用指定的 ClassInterfaceAttribute 枚举成员初始化 ClassInterfaceType 类的新实例。Initializes a new instance of the ClassInterfaceAttribute class with the specified ClassInterfaceType enumeration member.

ClassInterfaceAttribute(Int16)

使用指定的 ClassInterfaceAttribute 枚举值初始化 ClassInterfaceType 类的新实例。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)

参数

classInterfaceType
Int16

描述为类生成的接口的类型。Describes the type of interface that is generated for a class.

注解

此构造函数采用表示每个 ClassInterfaceType 枚举成员的基础16位有符号整数。This constructor takes an underlying 16-bit signed integer that represents each ClassInterfaceType enumeration member. Tlbimp.exe (类型库导入程序)使用此构造函数。The Tlbimp.exe (Type Library Importer) uses this constructor.

另请参阅

ClassInterfaceAttribute(ClassInterfaceType)

使用指定的 ClassInterfaceAttribute 枚举成员初始化 ClassInterfaceType 类的新实例。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)

参数

classInterfaceType
ClassInterfaceType

ClassInterfaceType 值之一,描述为类生成的接口的类型。One of the ClassInterfaceType values that describes the type of interface that is generated for a class.

注解

对于不容易出错的可读代码,请始终使用此构造函数。For readable code that is less prone to error, always use this constructor.

适用于