NSInstance Constructor (String)

Creates and initializes an instance of the NSInstance class.

Namespace: Microsoft.SqlServer.NotificationServices
Assembly: Microsoft.SqlServer.NotificationServices (in microsoft.sqlserver.notificationservices.dll)

Syntax

'Declaration
Public Sub New ( _
    instanceName As String _
)
public NSInstance (
    string instanceName
)
public:
NSInstance (
    String^ instanceName
)
public NSInstance (
    String instanceName
)
public function NSInstance (
    instanceName : String
)

Parameters

  • instanceName
    The name of the Notification Services instance.

Remarks

Updated text:14 April 2006

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

Example

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

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

NSInstance Class
NSInstance Members
Microsoft.SqlServer.NotificationServices Namespace

Change History

Release

History

14 April 2006

New content:
  • Added information about how to use this constructor with SQL Server Authentication.