Compartir a través de


NSInstance Constructor (String)

Creates and initializes an instance of the NSInstance class.

Espacio de nombres: Microsoft.SqlServer.NotificationServices
Ensamblado: Microsoft.SqlServer.NotificationServices (in microsoft.sqlserver.notificationservices.dll)

Sintaxis

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

Parámetros

  • instanceName
    The name of the Notification Services instance.

Notas

Texto actualizado:14 de abril de 2006

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

Ejemplo

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

Plataformas

Plataformas de desarrollo

Para obtener una lista de las plataformas compatibles, vea Requisitos de hardware y software para instalar SQL Server 2005.

Plataformas de destino

Para obtener una lista de las plataformas compatibles, vea Requisitos de hardware y software para instalar SQL Server 2005.

Vea también

Referencia

NSInstance Class
NSInstance Members
Microsoft.SqlServer.NotificationServices Namespace