IDispatchImplAttribute 建構函式
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化 IDispatchImplAttribute
類別的新執行個體。
IDispatchImplAttribute(Int16) |
使用指定的 IDispatchImplType 值來初始化 |
IDispatchImplAttribute(IDispatchImplType) |
使用指定的 IDispatchImplType 值來初始化 |
使用指定的 IDispatchImplType 值來初始化 IDispatchImplAttribute
類別的新執行個體。
public:
IDispatchImplAttribute(short implType);
C#
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) 使用此建構函式來避免產生代表值的 value
typerefIDispatchImplType
,然後使用該令牌建置簽章。
適用於
.NET Framework 4.8.1 及其他版本
產品 | 版本 |
---|---|
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
使用指定的 IDispatchImplType 值來初始化 IDispatchImplAttribute
類別的新執行個體。
public:
IDispatchImplAttribute(System::Runtime::InteropServices::IDispatchImplType implType);
C#
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 列舉型別。
備註
對於較不容易出錯的可讀取程序代碼,請一律使用此建構函式。
適用於
.NET Framework 4.8.1 及其他版本
產品 | 版本 |
---|---|
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |