InterfaceTypeAttribute Konstruktorer

Definition

Initierar en ny instans av InterfaceTypeAttribute klassen.

Överlagringar

Name Description
InterfaceTypeAttribute(Int16)

Initierar en ny instans av InterfaceTypeAttribute klassen med den angivna ComInterfaceType uppräkningsmedlemmen.

InterfaceTypeAttribute(ComInterfaceType)

Initierar en ny instans av InterfaceTypeAttribute klassen med den angivna ComInterfaceType uppräkningsmedlemmen.

InterfaceTypeAttribute(Int16)

Källa:
InterfaceTypeAttribute.cs
Källa:
InterfaceTypeAttribute.cs
Källa:
InterfaceTypeAttribute.cs
Källa:
InterfaceTypeAttribute.cs
Källa:
InterfaceTypeAttribute.cs

Initierar en ny instans av InterfaceTypeAttribute klassen med den angivna ComInterfaceType uppräkningsmedlemmen.

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

Parametrar

interfaceType
Int16

Beskriver hur gränssnittet ska exponeras för COM-klienter.

Kommentarer

Den här konstruktorn tar ett underliggande 16-bitars heltal som representerar varje ComInterfaceType uppräkningsmedlem. Tlbimp.exe (typbiblioteksimportör) använder den här konstruktorn.

Se även

Gäller för

InterfaceTypeAttribute(ComInterfaceType)

Källa:
InterfaceTypeAttribute.cs
Källa:
InterfaceTypeAttribute.cs
Källa:
InterfaceTypeAttribute.cs
Källa:
InterfaceTypeAttribute.cs
Källa:
InterfaceTypeAttribute.cs

Initierar en ny instans av InterfaceTypeAttribute klassen med den angivna ComInterfaceType uppräkningsmedlemmen.

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)

Parametrar

interfaceType
ComInterfaceType

Ett av de ComInterfaceType värden som beskriver hur gränssnittet ska exponeras för COM-klienter.

Kommentarer

Använd alltid den här konstruktorn för läsbar kod som är mindre felbenägen.

Gäller för