다음을 통해 공유


NSApplication Constructor (NSInstance, String)

Creates and initializes a new instance of the NSApplication class.

네임스페이스: Microsoft.SqlServer.NotificationServices
어셈블리: Microsoft.SqlServer.NotificationServices (in microsoft.sqlserver.notificationservices.dll)

구문

‘선언
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
)

매개 변수

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

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

플랫폼

개발 플랫폼

지원되는 플랫폼 목록은 SQL Server 2005 설치를 위한 하드웨어 및 소프트웨어 요구 사항을 참조하십시오.

대상 플랫폼

지원되는 플랫폼 목록은 SQL Server 2005 설치를 위한 하드웨어 및 소프트웨어 요구 사항을 참조하십시오.

참고 항목

참조

NSApplication Class
NSApplication Members
Microsoft.SqlServer.NotificationServices Namespace