Freigeben über


NotificationClassCollection.Add Method

Adds a NotificationClass to the NotificationClassCollection.

Namespace: Microsoft.SqlServer.Management.Nmo
Assembly : Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)

Syntax

'Declaration
Public Sub Add ( _
    notificationClass As NotificationClass _
)
public void Add (
    NotificationClass notificationClass
)
public:
void Add (
    NotificationClass^ notificationClass
)
public void Add (
    NotificationClass notificationClass
)
public function Add (
    notificationClass : NotificationClass
)

Parameter

Hinweise

If you add notification classes after deploying the application, you must Update the instance to apply the changes.

Beispiel

The following examples show how to use the collection object to add a notification class to an application:

myApplication.NotificationClasses.Add(flightNotifications);
myApplication.NotificationClasses.Add(flightNotifications)

Threadsicherheit

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Plattformen

Entwicklungsplattformen

Eine Liste der unterstützten Plattformen finden Sie unterHardware- und Softwareanforderungen für die Installation von SQL Server 2005.

Zielplattforme

Eine Liste der unterstützten Plattformen finden Sie unterHardware- und Softwareanforderungen für die Installation von SQL Server 2005.

Siehe auch

Verweis

NotificationClassCollection Class
NotificationClassCollection Members
Microsoft.SqlServer.Management.Nmo Namespace

Andere Ressourcen

Definieren von Benachrichtigungsklassen
NotificationClass Element (ADF)