NSApplication Constructor (NSInstance, String)
Creates and initializes a new instance of the NSApplication class.
Namespace: Microsoft.SqlServer.NotificationServices
Assembly: Microsoft.SqlServer.NotificationServices (in microsoft.sqlserver.notificationservices.dll)
Syntax
'Declaration
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
)
Parameters
- nsInstance
An NSInstance object that represents the instance of Notification Services that hosts the application.
- applicationName
A string containing the name of the application.
Example
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);
Platforms
Development Platforms
For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.
Target Platforms
For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.
See Also
Reference
NSApplication Class
NSApplication Members
Microsoft.SqlServer.NotificationServices Namespace