InterfaceTypeAttribute 构造函数

定义

初始化 InterfaceTypeAttribute 类的新实例。

重载

InterfaceTypeAttribute(Int16)

使用指定的 ComInterfaceType 枚举成员初始化 InterfaceTypeAttribute 类的新实例。

InterfaceTypeAttribute(ComInterfaceType)

使用指定的 ComInterfaceType 枚举成员初始化 InterfaceTypeAttribute 类的新实例。

InterfaceTypeAttribute(Int16)

Source:
InterfaceTypeAttribute.cs
Source:
InterfaceTypeAttribute.cs
Source:
InterfaceTypeAttribute.cs

使用指定的 ComInterfaceType 枚举成员初始化 InterfaceTypeAttribute 类的新实例。

public:
 InterfaceTypeAttribute(short interfaceType);
public InterfaceTypeAttribute (short interfaceType);
new System.Runtime.InteropServices.InterfaceTypeAttribute : int16 -> System.Runtime.InteropServices.InterfaceTypeAttribute
Public Sub New (interfaceType As Short)

参数

interfaceType
Int16

描述应如何向 COM 客户端公开接口。

注解

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

另请参阅

适用于

InterfaceTypeAttribute(ComInterfaceType)

Source:
InterfaceTypeAttribute.cs
Source:
InterfaceTypeAttribute.cs
Source:
InterfaceTypeAttribute.cs

使用指定的 ComInterfaceType 枚举成员初始化 InterfaceTypeAttribute 类的新实例。

public:
 InterfaceTypeAttribute(System::Runtime::InteropServices::ComInterfaceType interfaceType);
public InterfaceTypeAttribute (System.Runtime.InteropServices.ComInterfaceType interfaceType);
new System.Runtime.InteropServices.InterfaceTypeAttribute : System.Runtime.InteropServices.ComInterfaceType -> System.Runtime.InteropServices.InterfaceTypeAttribute
Public Sub New (interfaceType As ComInterfaceType)

参数

interfaceType
ComInterfaceType

ComInterfaceType 值之一,指定如何向 COM 客户端公开接口。

注解

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

适用于