InterfaceTypeAttribute 构造函数

定义

初始化 InterfaceTypeAttribute 类的新实例。

重载

名称 说明
InterfaceTypeAttribute(Int16)

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

InterfaceTypeAttribute(ComInterfaceType)

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

InterfaceTypeAttribute(Int16)

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

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

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 客户端公开接口。

注解

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

另请参阅

适用于

InterfaceTypeAttribute(ComInterfaceType)

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

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

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 客户端公开的值之一。

注解

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

适用于