IDispatchImplAttribute 建構函式

定義

初始化 IDispatchImplAttribute 類別的新執行個體。

多載

IDispatchImplAttribute(Int16)

使用指定的 IDispatchImplType 值來初始化 IDispatchImplAttribute 類別的新執行個體。

IDispatchImplAttribute(IDispatchImplType)

使用指定的 IDispatchImplType 值來初始化 IDispatchImplAttribute 類別的新執行個體。

IDispatchImplAttribute(Int16)

來源:
IDispatchImplAttribute.cs

使用指定的 IDispatchImplType 值來初始化 IDispatchImplAttribute 類別的新執行個體。

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 列舉型別。

備註

這個建構函式會採用基礎 16 位帶正負號的整數,代表每個 IDispatchImplType 列舉成員。 類型連結庫匯入工具 (TlbImp.exe) 使用此建構函式來避免產生代表之值的 value typerefIDispatchImplType,然後使用該令牌建置簽章。

適用於

IDispatchImplAttribute(IDispatchImplType)

來源:
IDispatchImplAttribute.cs

使用指定的 IDispatchImplType 值來初始化 IDispatchImplAttribute 類別的新執行個體。

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 列舉型別。

備註

對於較不容易出錯的可讀取程序代碼,請一律使用此建構函式。

適用於