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