InterfaceTypeAttribute Konstruktor

Definisi

Menginisialisasi instans baru kelas InterfaceTypeAttribute.

Overload

InterfaceTypeAttribute(Int16)

Menginisialisasi instans InterfaceTypeAttribute baru kelas dengan anggota enumerasi yang ditentukan ComInterfaceType .

InterfaceTypeAttribute(ComInterfaceType)

Menginisialisasi instans InterfaceTypeAttribute baru kelas dengan anggota enumerasi yang ditentukan ComInterfaceType .

InterfaceTypeAttribute(Int16)

Sumber:
InterfaceTypeAttribute.cs
Sumber:
InterfaceTypeAttribute.cs
Sumber:
InterfaceTypeAttribute.cs

Menginisialisasi instans InterfaceTypeAttribute baru kelas dengan anggota enumerasi yang ditentukan ComInterfaceType .

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

Parameter

interfaceType
Int16

Menjelaskan bagaimana antarmuka harus diekspos ke klien COM.

Keterangan

Konstruktor ini mengambil bilangan bulat 16-bit yang mendasar yang mewakili setiap ComInterfaceType anggota enumerasi. Tlbimp.exe (Pengimpor Pustaka Tipe) menggunakan konstruktor ini.

Lihat juga

Berlaku untuk

InterfaceTypeAttribute(ComInterfaceType)

Sumber:
InterfaceTypeAttribute.cs
Sumber:
InterfaceTypeAttribute.cs
Sumber:
InterfaceTypeAttribute.cs

Menginisialisasi instans InterfaceTypeAttribute baru kelas dengan anggota enumerasi yang ditentukan ComInterfaceType .

public:
 InterfaceTypeAttribute(System::Runtime::InteropServices::ComInterfaceType interfaceType);
public InterfaceTypeAttribute (System.Runtime.InteropServices.ComInterfaceType interfaceType);
new System.Runtime.InteropServices.InterfaceTypeAttribute : System.Runtime.InteropServices.ComInterfaceType -> System.Runtime.InteropServices.InterfaceTypeAttribute
Public Sub New (interfaceType As ComInterfaceType)

Parameter

interfaceType
ComInterfaceType

Salah ComInterfaceType satu nilai yang menjelaskan bagaimana antarmuka harus diekspos ke klien COM.

Keterangan

Untuk kode yang dapat dibaca yang kurang rentan terhadap kesalahan, selalu gunakan konstruktor ini.

Berlaku untuk