SubscriberDeviceEnumeration Constructor (NSInstance, String)
Creates and initializes an instance of the SubscriberDeviceEnumeration class.
Namespace: Microsoft.SqlServer.NotificationServices
Assembly: Microsoft.SqlServer.NotificationServices (in microsoft.sqlserver.notificationservices.dll)
Syntax
'Declaration
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
)
Parameters
- 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.
Example
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);
Platforms
Development Platforms
For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.
Target Platforms
For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.
See Also
Reference
SubscriberDeviceEnumeration Class
SubscriberDeviceEnumeration Members
Microsoft.SqlServer.NotificationServices Namespace