共用方式為


ApplicationEnumeration Constructor (NSInstance)

Creates and initializes an instance of the ApplicationEnumeration class.

命名空間: Microsoft.SqlServer.NotificationServices
組件: Microsoft.SqlServer.NotificationServices (in microsoft.sqlserver.notificationservices.dll)

語法

'宣告
Public Sub New ( _
    nsInstance As NSInstance _
)
public ApplicationEnumeration (
    NSInstance nsInstance
)
public:
ApplicationEnumeration (
    NSInstance^ nsInstance
)
public ApplicationEnumeration (
    NSInstance nsInstance
)
public function ApplicationEnumeration (
    nsInstance : NSInstance
)

參數

  • nsInstance
    An NSInstance that represents an instance of Notification Services.

範例

The following examples show how to create and initialize an ApplicationEnumeration object in managed code.

These examples use the Microsoft.SqlServer.NotificationServices namespace.

Dim instanceName As String = "MyInstanceName"

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

'Create an ApplicationEnumeration object.
Dim myApplicationEnumeration As _
    New ApplicationEnumeration(myInstance)
string instanceName = "MyInstanceName";

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

//Create an ApplicationEnumeration object.
ApplicationEnumeration myApplicationEnumeration = 
    new ApplicationEnumeration(myInstance);

平台

開發平台

如需受支援的平台清單,請參閱<安裝 SQL Server 2005 的硬體和軟體需求>。

目標平台

如需受支援的平台清單,請參閱<安裝 SQL Server 2005 的硬體和軟體需求>。

請參閱

參考

ApplicationEnumeration Class
ApplicationEnumeration Members
Microsoft.SqlServer.NotificationServices Namespace