NSInstance Constructor (String)

Creates and initializes an instance of the NSInstance class.

Espace de noms: Microsoft.SqlServer.NotificationServices
Assembly: Microsoft.SqlServer.NotificationServices (in microsoft.sqlserver.notificationservices.dll)

Syntaxe

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

Paramètres

  • instanceName
    The name of the Notification Services instance.

Notes

Texte mis à jour :14 avril 2006

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

Exemple

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

Plateformes

Plateformes de développement

Pour obtenir la liste des plateformes prises en charge, consultez Configuration matérielle et logicielle requise pour l'installation de SQL Server 2005.

Plateformes cibles

Pour obtenir la liste des plateformes prises en charge, consultez Configuration matérielle et logicielle requise pour l'installation de SQL Server 2005.

Voir aussi

Référence

NSInstance Class
NSInstance Members
Microsoft.SqlServer.NotificationServices Namespace