ClassInterfaceAttribute 建構函式

定義

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

多載

ClassInterfaceAttribute(Int16)

使用指定的 ClassInterfaceAttribute 列舉值,初始化 ClassInterfaceType 類別的新執行個體。

ClassInterfaceAttribute(ClassInterfaceType)

使用指定的 ClassInterfaceAttribute 列舉型別 (Enumeration) 成員,初始化 ClassInterfaceType 類別的新執行個體。

ClassInterfaceAttribute(Int16)

來源:
ClassInterfaceAttribute.cs
來源:
ClassInterfaceAttribute.cs
來源:
ClassInterfaceAttribute.cs

使用指定的 ClassInterfaceAttribute 列舉值,初始化 ClassInterfaceType 類別的新執行個體。

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

參數

classInterfaceType
Int16

描述為類別所產生的介面型別。

備註

此建構函式會採用代表每個 ClassInterfaceType 列舉成員的基礎 16 位帶正負號整數。 Tlbimp.exe (類型庫匯入工具) 使用此建構函式。

另請參閱

適用於

ClassInterfaceAttribute(ClassInterfaceType)

來源:
ClassInterfaceAttribute.cs
來源:
ClassInterfaceAttribute.cs
來源:
ClassInterfaceAttribute.cs

使用指定的 ClassInterfaceAttribute 列舉型別 (Enumeration) 成員,初始化 ClassInterfaceType 類別的新執行個體。

public:
 ClassInterfaceAttribute(System::Runtime::InteropServices::ClassInterfaceType classInterfaceType);
public ClassInterfaceAttribute (System.Runtime.InteropServices.ClassInterfaceType classInterfaceType);
new System.Runtime.InteropServices.ClassInterfaceAttribute : System.Runtime.InteropServices.ClassInterfaceType -> System.Runtime.InteropServices.ClassInterfaceAttribute
Public Sub New (classInterfaceType As ClassInterfaceType)

參數

classInterfaceType
ClassInterfaceType

其中一個 ClassInterfaceType 值,描述為類別產生的介面型別。

備註

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

適用於