SubscriberDevice Constructor (NSInstance)
Creates and initializes an instance of the SubscriberDevice class.
命名空間: Microsoft.SqlServer.NotificationServices
組件: Microsoft.SqlServer.NotificationServices (in microsoft.sqlserver.notificationservices.dll)
語法
'宣告
Public Sub New ( _
nsInstance As NSInstance _
)
public SubscriberDevice (
NSInstance nsInstance
)
public:
SubscriberDevice (
NSInstance^ nsInstance
)
public SubscriberDevice (
NSInstance nsInstance
)
public function SubscriberDevice (
nsInstance : NSInstance
)
參數
- nsInstance
An NSInstance representing the Notification Services instance that contains the subscriber device.
範例
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);
平台
開發平台
如需受支援的平台清單,請參閱<安裝 SQL Server 2005 的硬體和軟體需求>。
目標平台
如需受支援的平台清單,請參閱<安裝 SQL Server 2005 的硬體和軟體需求>。
請參閱
參考
SubscriberDevice Class
SubscriberDevice Members
Microsoft.SqlServer.NotificationServices Namespace