Freigeben über


ClassInterfaceAttribute-Konstruktor (ClassInterfaceType)

Initialisiert eine neue Instanz der ClassInterfaceAttribute-Klasse mit dem angegebenen ClassInterfaceType-Enumerationsmember.

Namespace: System.Runtime.InteropServices
Assembly: mscorlib (in mscorlib.dll)

Syntax

'Declaration
Public Sub New ( _
    classInterfaceType As ClassInterfaceType _
)
'Usage
Dim classInterfaceType As ClassInterfaceType

Dim instance As New ClassInterfaceAttribute(classInterfaceType)
public ClassInterfaceAttribute (
    ClassInterfaceType classInterfaceType
)
public:
ClassInterfaceAttribute (
    ClassInterfaceType classInterfaceType
)
public ClassInterfaceAttribute (
    ClassInterfaceType classInterfaceType
)
public function ClassInterfaceAttribute (
    classInterfaceType : ClassInterfaceType
)

Parameter

  • classInterfaceType
    Einer der ClassInterfaceType-Werte, der den Typ der für eine Klasse generierten Schnittstelle beschreibt.

Hinweise

Verwenden Sie für weniger fehleranfälligen lesbaren Code immer diesen Konstruktor.

Plattformen

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile für Pocket PC, Windows Mobile für Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

.NET Framework unterstützt nicht alle Versionen sämtlicher Plattformen. Eine Liste der unterstützten Versionen finden Sie unter Systemanforderungen.

Versionsinformationen

.NET Framework

Unterstützt in: 2.0, 1.1, 1.0

.NET Compact Framework

Unterstützt in: 2.0

Siehe auch

Referenz

ClassInterfaceAttribute-Klasse
ClassInterfaceAttribute-Member
System.Runtime.InteropServices-Namespace