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
)
Parameters
- notificationClass
The NotificationClass to add to the collection.
Remarks
If you add notification classes after deploying the application, you must Update the instance to apply the changes.
Example
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)
Thread Safety
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.
Platforms
Development Platforms
For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.
Target Platforms
For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.
See Also
Reference
NotificationClassCollection Class
NotificationClassCollection Members
Microsoft.SqlServer.Management.Nmo Namespace
Other Resources
Defining Notification Classes
NotificationClass Element (ADF)