IDispatchImplAttribute 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化 IDispatchImplAttribute 類別的新執行個體。
多載
| 名稱 | Description |
|---|---|
| IDispatchImplAttribute(Int16) |
初始化一個以指定IDispatchImplType值的新 |
| IDispatchImplAttribute(IDispatchImplType) |
初始化一個以指定IDispatchImplType值的新 |
IDispatchImplAttribute(Int16)
初始化一個以指定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)使用此建構子以避免產生代表 IDispatchImplType 該值 value 的型別ref,然後用該標記建立簽章。
適用於
IDispatchImplAttribute(IDispatchImplType)
初始化一個以指定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 列舉方式。
備註
對於較不易出錯的可讀程式碼,請始終使用此建構子。