SubscriptionClassEnumeration Constructor (NSApplication)
Creates and initializes an object of the SubscriptionClassEnumeration class.
Spazio dei nomi: Microsoft.SqlServer.NotificationServices
Assembly : Microsoft.SqlServer.NotificationServices (in microsoft.sqlserver.notificationservices.dll)
Sintassi
'Dichiarazione
Public Sub New ( _
application As NSApplication _
)
public SubscriptionClassEnumeration (
NSApplication application
)
public:
SubscriptionClassEnumeration (
NSApplication^ application
)
public SubscriptionClassEnumeration (
NSApplication application
)
public function SubscriptionClassEnumeration (
application : NSApplication
)
Parametri
- application
An NSApplication representing the Notification Services application that contains the subscription classes to be enumerated by this SubscriptionClassEnumeration object.
Esempio
The following examples show how to create and initialize a SubscriptionClassEnumeration 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)
'Create a SubscriptionClassEnumeration object.
Dim mySubscriptionClassEnumeration As _
New SubscriptionClassEnumeration(myApplication)
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);
//Create a SubscriptionClassEnumeration object.
SubscriptionClassEnumeration mySubscriptionClassEnumeration =
new SubscriptionClassEnumeration(myApplication);
Piattaforme
Piattaforme di sviluppo
Per un elenco delle piattaforme supportate, vedere Requisiti hardware e software per l'Installazione di SQL Server 2005.
Piattaforme di destinazione
Per un elenco delle piattaforme supportate, vedere Requisiti hardware e software per l'Installazione di SQL Server 2005.
Vedere anche
Riferimento
SubscriptionClassEnumeration Class
SubscriptionClassEnumeration Members
Microsoft.SqlServer.NotificationServices Namespace