SubscriberDeviceEnumeration Constructor (NSInstance, String)

Creates and initializes an instance of the SubscriberDeviceEnumeration class.

命名空间: Microsoft.SqlServer.NotificationServices
程序集: Microsoft.SqlServer.NotificationServices (in microsoft.sqlserver.notificationservices.dll)

语法

声明
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
)

参数

  • 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.

示例

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);

平台

开发平台

有关支持的平台列表,请参阅安装 SQL Server 2005 的硬件和软件要求。

目标平台

有关支持的平台列表,请参阅安装 SQL Server 2005 的硬件和软件要求。

请参阅

参考

SubscriberDeviceEnumeration Class
SubscriberDeviceEnumeration Members
Microsoft.SqlServer.NotificationServices Namespace