ClassInterfaceAttribute 构造函数

定义

初始化 ClassInterfaceAttribute 类的新实例。

重载

名称 说明
ClassInterfaceAttribute(Int16)

使用指定的ClassInterfaceAttribute枚举值初始化类的新实例ClassInterfaceType

ClassInterfaceAttribute(ClassInterfaceType)

使用指定的ClassInterfaceAttribute枚举成员初始化类的新实例ClassInterfaceType

ClassInterfaceAttribute(Int16)

Source:
ClassInterfaceAttribute.cs
Source:
ClassInterfaceAttribute.cs
Source:
ClassInterfaceAttribute.cs
Source:
ClassInterfaceAttribute.cs
Source:
ClassInterfaceAttribute.cs

使用指定的ClassInterfaceAttribute枚举值初始化类的新实例ClassInterfaceType

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

描述为类生成的接口的类型。

注解

此构造函数采用表示每个 ClassInterfaceType 枚举成员的基础 16 位有符号整数。 Tlbimp.exe(类型库导入程序)使用此构造函数。

另请参阅

适用于

ClassInterfaceAttribute(ClassInterfaceType)

Source:
ClassInterfaceAttribute.cs
Source:
ClassInterfaceAttribute.cs
Source:
ClassInterfaceAttribute.cs
Source:
ClassInterfaceAttribute.cs
Source:
ClassInterfaceAttribute.cs

使用指定的ClassInterfaceAttribute枚举成员初始化类的新实例ClassInterfaceType

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 为类生成的接口类型的值之一。

注解

对于容易出错的可读代码,请始终使用此构造函数。

适用于