Примечание.
Для доступа к этой странице требуется авторизация. Вы можете попробовать войти или изменить каталоги.
Для доступа к этой странице требуется авторизация. Вы можете попробовать изменить каталоги.
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);
Платформы
Платформы разработки
Список поддерживаемых платформ см. в разделе Hardware and Software Requirements for Installing SQL Server 2005.
Целевые платформы
Список поддерживаемых платформ см. в разделе Hardware and Software Requirements for Installing SQL Server 2005.
См. также
Справочник
NSApplication Class
NSApplication Members
Microsoft.SqlServer.NotificationServices Namespace