Compartir a través de


SubscriberDeviceEnumeration Constructor (NSInstance, String)

Creates and initializes an instance of the SubscriberDeviceEnumeration class.

Espacio de nombres: Microsoft.SqlServer.NotificationServices
Ensamblado: Microsoft.SqlServer.NotificationServices (in microsoft.sqlserver.notificationservices.dll)

Sintaxis

'Declaración
Public Sub New ( _
    nsInstance As NSInstance, _
    subscriberId As String _
)
public SubscriberDeviceEnumeration (
    NSInstance nsInstance,
    string subscriberId
)
public:
SubscriberDeviceEnumeration (
    NSInstance^ nsInstance, 
    String^ subscriberId
)
public SubscriberDeviceEnumeration (
    NSInstance nsInstance, 
    String subscriberId
)
public function SubscriberDeviceEnumeration (
    nsInstance : NSInstance, 
    subscriberId : String
)

Parámetros

  • nsInstance
    An NSInstance representing the Notification Services instance that contains the subscriber devices.
  • subscriberId
    A String containing the subscriber ID of the subscriber with whom the devices are associated.

Ejemplo

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

Dim instanceName As String = "MyInstanceName"
Dim subscriberId As String = "MySubscriberID"

'Create an NSInstance object.
Dim myInstance As New NSInstance(instanceName)

'Create a SubscriberDeviceEnumeration object.
Dim mySubscriberDeviceEnumeration As _
    New SubscriberDeviceEnumeration(myInstance, subscriberId)
string instanceName = "MyInstanceName";
string subscriberId = "MySubscriberID";

//Create an NSInstance object.
NSInstance myInstance = new NSInstance(instanceName);

//Create a SubscriberDeviceEnumeration object.
SubscriberDeviceEnumeration mySubscriberDeviceEnumeration = 
    new SubscriberDeviceEnumeration(myInstance, subscriberId);

Plataformas

Plataformas de desarrollo

Para obtener una lista de las plataformas compatibles, vea Requisitos de hardware y software para instalar SQL Server 2005.

Plataformas de destino

Para obtener una lista de las plataformas compatibles, vea Requisitos de hardware y software para instalar SQL Server 2005.

Vea también

Referencia

SubscriberDeviceEnumeration Class
SubscriberDeviceEnumeration Members
Microsoft.SqlServer.NotificationServices Namespace