NotificationClassEnumeration Constructor (NSApplication)
Creates and initializes an instance of the NotificationClassEnumeration class.
Espace de noms: Microsoft.SqlServer.NotificationServices
Assembly: Microsoft.SqlServer.NotificationServices (in microsoft.sqlserver.notificationservices.dll)
Syntaxe
'Déclaration
Public Sub New ( _
application As NSApplication _
)
public NotificationClassEnumeration (
NSApplication application
)
public:
NotificationClassEnumeration (
NSApplication^ application
)
public NotificationClassEnumeration (
NSApplication application
)
public function NotificationClassEnumeration (
application : NSApplication
)
Paramètres
- application
An NSApplication representing the Notification Services application that contains the subscription classes to be enumerated by this SubscriptionClassEnumeration object.
Exemple
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 NotificationClassEnumeration object.
Dim myNotificationClassEnumeration As _
New NotificationClassEnumeration(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 NotificationClassEnumeration object.
NotificationClassEnumeration myEventClassEnumeration =
new NotificationClassEnumeration(myApplication);
Plateformes
Plateformes de développement
Pour obtenir la liste des plateformes prises en charge, consultez Configuration matérielle et logicielle requise pour l'installation de SQL Server 2005.
Plateformes cibles
Pour obtenir la liste des plateformes prises en charge, consultez Configuration matérielle et logicielle requise pour l'installation de SQL Server 2005.
Voir aussi
Référence
NotificationClassEnumeration Class
NotificationClassEnumeration Members
Microsoft.SqlServer.NotificationServices Namespace