IDispatchImplAttribute 构造函数

定义

初始化 IDispatchImplAttribute 类的新实例。

重载

名称 说明
IDispatchImplAttribute(Int16)

使用指定的IDispatchImplAttribute值初始化类的新实例IDispatchImplType

IDispatchImplAttribute(IDispatchImplType)

使用指定的IDispatchImplAttribute值初始化类的新实例IDispatchImplType

IDispatchImplAttribute(Int16)

Source:
IDispatchImplAttribute.cs

使用指定的IDispatchImplAttribute值初始化类的新实例IDispatchImplType

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

参数

implType
Int16

指示将使用哪个 IDispatchImplType 枚举。

注解

此构造函数采用表示每个 IDispatchImplType 枚举成员的基础 16 位有符号整数。 类型库导入程序(TlbImp.exe)使用此构造函数来避免为表示的值IDispatchImplType生成 typerefvalue,然后使用该令牌生成签名。

适用于

IDispatchImplAttribute(IDispatchImplType)

Source:
IDispatchImplAttribute.cs

使用指定的IDispatchImplAttribute值初始化类的新实例IDispatchImplType

public:
 IDispatchImplAttribute(System::Runtime::InteropServices::IDispatchImplType implType);
public IDispatchImplAttribute(System.Runtime.InteropServices.IDispatchImplType implType);
new System.Runtime.InteropServices.IDispatchImplAttribute : System.Runtime.InteropServices.IDispatchImplType -> System.Runtime.InteropServices.IDispatchImplAttribute
Public Sub New (implType As IDispatchImplType)

参数

implType
IDispatchImplType

指示将使用哪个 IDispatchImplType 枚举。

注解

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

适用于