Partager via


SubscriberDevice Constructor (NSInstance)

Creates and initializes an instance of the SubscriberDevice class.

Espace de noms: Microsoft.SqlServer.NotificationServices
Assembly: Microsoft.SqlServer.NotificationServices (in microsoft.sqlserver.notificationservices.dll)

Syntaxe

'Déclaration
Public Sub New ( _
    nsInstance As NSInstance _
)
public SubscriberDevice (
    NSInstance nsInstance
)
public:
SubscriberDevice (
    NSInstance^ nsInstance
)
public SubscriberDevice (
    NSInstance nsInstance
)
public function SubscriberDevice (
    nsInstance : NSInstance
)

Paramètres

  • nsInstance
    An NSInstance representing the Notification Services instance that contains the subscriber device.

Exemple

The following examples show how to create and initialize a SubscriberDevice in managed code:

Dim instanceName As String = "Tutorial"

' Create the NSInstance object.
Dim testInstance As New NSInstance(instanceName)

' Create the SubscriberDevice object.
Dim testSubscriberDevice As SubscriberDevice = _
    New SubscriberDevice(testInstance)
string instanceName = "Tutorial";

// Create the NSInstance object.
NSInstance testInstance = new NSInstance(instanceName);

// Create the SubscriberDevice object.
SubscriberDevice testSubscriberDevice = 
    new SubscriberDevice(testInstance);

Plateformes

Plateformes de développement

Pour obtenir la liste des plateformes prises en charge, consultez Configuration matérielle et logicielle requise pour l'installation de SQL Server 2005.

Plateformes cibles

Pour obtenir la liste des plateformes prises en charge, consultez Configuration matérielle et logicielle requise pour l'installation de SQL Server 2005.

Voir aussi

Référence

SubscriberDevice Class
SubscriberDevice Members
Microsoft.SqlServer.NotificationServices Namespace