InterfaceTypeAttribute Constructors

Definitie

Initialiseert een nieuw exemplaar van de InterfaceTypeAttribute klasse.

Overloads

Name Description
InterfaceTypeAttribute(Int16)

Initialiseert een nieuw exemplaar van de InterfaceTypeAttribute klasse met het opgegeven ComInterfaceType opsommingslid.

InterfaceTypeAttribute(ComInterfaceType)

Initialiseert een nieuw exemplaar van de InterfaceTypeAttribute klasse met het opgegeven ComInterfaceType opsommingslid.

InterfaceTypeAttribute(Int16)

Bron:
InterfaceTypeAttribute.cs
Bron:
InterfaceTypeAttribute.cs
Bron:
InterfaceTypeAttribute.cs
Bron:
InterfaceTypeAttribute.cs
Bron:
InterfaceTypeAttribute.cs

Initialiseert een nieuw exemplaar van de InterfaceTypeAttribute klasse met het opgegeven ComInterfaceType opsommingslid.

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

Parameters

interfaceType
Int16

Beschrijft hoe de interface moet worden blootgesteld aan COM-clients.

Opmerkingen

Deze constructor gebruikt een onderliggend 16-bits geheel getal dat elk ComInterfaceType opsommingslid vertegenwoordigt. De Tlbimp.exe (Type Library Importer) maakt gebruik van deze constructor.

Zie ook

Van toepassing op

InterfaceTypeAttribute(ComInterfaceType)

Bron:
InterfaceTypeAttribute.cs
Bron:
InterfaceTypeAttribute.cs
Bron:
InterfaceTypeAttribute.cs
Bron:
InterfaceTypeAttribute.cs
Bron:
InterfaceTypeAttribute.cs

Initialiseert een nieuw exemplaar van de InterfaceTypeAttribute klasse met het opgegeven ComInterfaceType opsommingslid.

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)

Parameters

interfaceType
ComInterfaceType

Een van de ComInterfaceType waarden die beschrijven hoe de interface moet worden blootgesteld aan COM-clients.

Opmerkingen

Gebruik deze constructor altijd voor leesbare code die minder gevoelig is voor fouten.

Van toepassing op