NSInstance Constructor (String)

Creates and initializes an instance of the NSInstance class.

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

语法

声明
Public Sub New ( _
    instanceName As String _
)
public NSInstance (
    string instanceName
)
public:
NSInstance (
    String^ instanceName
)
public NSInstance (
    String instanceName
)
public function NSInstance (
    instanceName : String
)

参数

  • instanceName
    The name of the Notification Services instance.

备注

已更新的文本:2006 年 4 月 14 日

If you are using SQL Server Authentication, use the NSInstance(String,String,String) constructor or the default constructor.

示例

The following examples show how to create and initialize an NSInstance object in managed code:

Dim instanceName As String = "MyInstanceName"

'Create an NSInstance object.
Dim myInstance As New NSInstance(instanceName)
string instanceName = "MyInstanceName";

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

平台

开发平台

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

目标平台

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

请参阅

参考

NSInstance Class
NSInstance Members
Microsoft.SqlServer.NotificationServices Namespace