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)

public NSInstance (
	string instanceName
public NSInstance (
	String instanceName
public function NSInstance (
	instanceName : String



The name of the Notification Services instance.

Updated text: 14 April 2006

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:

string instanceName = "MyInstanceName";

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

Development Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.

Target Platforms



14 April 2006

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

Community Additions