InterfaceTypeAttribute-Konstruktor: (ComInterfaceType)
Veröffentlicht: Oktober 2016
Initialisiert eine neue Instanz der InterfaceTypeAttribute -Klasse mit dem angegebenen ComInterfaceType Enumerationsmember.
Namespace: System.Runtime.InteropServices
Assembly: mscorlib (in mscorlib.dll)
Syntax
public InterfaceTypeAttribute(
ComInterfaceType interfaceType
)
public:
InterfaceTypeAttribute(
ComInterfaceType interfaceType
)
new :
interfaceType:ComInterfaceType -> InterfaceTypeAttribute
Public Sub New (
interfaceType As ComInterfaceType
)
Parameter
interfaceType
Type: System.Runtime.InteropServices.ComInterfaceTypeEines der ComInterfaceType Werte, der beschreibt, wie die Schnittstelle für COM-Clients verfügbar gemacht werden soll.
Hinweise
Verwenden Sie für lesbaren Code, der weniger fehleranfällig ist immer diesen Konstruktor.
Versionsinformationen
Universelle Windows-Plattform
Verfügbar seit 8
.NET Framework
Verfügbar seit 1.1
Portierbare Klassenbibliothek
Unterstützt in: portierbare .NET-Plattformen
Silverlight
Verfügbar seit 2.0
Windows Phone Silverlight
Verfügbar seit 7.0
Windows Phone
Verfügbar seit 8.1
Siehe auch
InterfaceTypeAttribute Überladen
InterfaceTypeAttribute-Klasse
System.Runtime.InteropServices-Namespace
Zurück zum Anfang