Condividi tramite


NSInstance Constructor (String)

Creates and initializes an instance of the NSInstance class.

Spazio dei nomi: Microsoft.SqlServer.NotificationServices
Assembly : Microsoft.SqlServer.NotificationServices (in microsoft.sqlserver.notificationservices.dll)

Sintassi

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

Parametri

  • instanceName
    The name of the Notification Services instance.

Osservazioni

Testo aggiornato:14 aprile 2006

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

Esempio

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

Piattaforme

Piattaforme di sviluppo

Per un elenco delle piattaforme supportate, vedere Requisiti hardware e software per l'Installazione di SQL Server 2005.

Piattaforme di destinazione

Per un elenco delle piattaforme supportate, vedere Requisiti hardware e software per l'Installazione di SQL Server 2005.

Vedere anche

Riferimento

NSInstance Class
NSInstance Members
Microsoft.SqlServer.NotificationServices Namespace