Partager via


NSApplication Constructor (NSInstance, String)

Creates and initializes a new instance of the NSApplication class.

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

Syntaxe

'Déclaration
Public Sub New ( _
    nsInstance As NSInstance, _
    applicationName As String _
)
public NSApplication (
    NSInstance nsInstance,
    string applicationName
)
public:
NSApplication (
    NSInstance^ nsInstance, 
    String^ applicationName
)
public NSApplication (
    NSInstance nsInstance, 
    String applicationName
)
public function NSApplication (
    nsInstance : NSInstance, 
    applicationName : String
)

Paramètres

  • nsInstance
    An NSInstance object that represents the instance of Notification Services that hosts the application.
  • applicationName
    A string containing the name of the application.

Exemple

The following examples show how to create and initialize an NSApplication in managed code:

Dim instanceName As String = "MyInstanceName"
Dim applicationName As String = "MyApplicationName"

'Create an NSInstance object.
Dim myInstance As New NSInstance(instanceName)

'Create an NSApplication object.
Dim myApplication As New NSApplication(myInstance, applicationName)
string instanceName = "MyInstanceName";
string applicationName = "MyApplicationName";

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

//Create an NSApplication object.
NSApplication myApplication = 
    new NSApplication(myInstance, applicationName);

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

NSApplication Class
NSApplication Members
Microsoft.SqlServer.NotificationServices Namespace