Freigeben über


ComSourceInterfacesAttribute-Konstruktor (Type)

Initialisiert eine neue Instanz der ComSourceInterfacesAttribute-Klasse mit dem Typ, der als Quellschnittstelle verwendet werden soll.

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

Syntax

'Declaration
Public Sub New ( _
    sourceInterface As Type _
)
'Usage
Dim sourceInterface As Type

Dim instance As New ComSourceInterfacesAttribute(sourceInterface)
public ComSourceInterfacesAttribute (
    Type sourceInterface
)
public:
ComSourceInterfacesAttribute (
    Type^ sourceInterface
)
public ComSourceInterfacesAttribute (
    Type sourceInterface
)
public function ComSourceInterfacesAttribute (
    sourceInterface : Type
)

Parameter

  • sourceInterface
    Der Type der Quellschnittstelle.

Hinweise

Verwenden Sie diesen Konstruktor, um eine einzige Ereignisquellen-Schnittstelle für COM-Clients verfügbar zu machen.

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

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