Compartir a través de


NotificationClassCollection.Add Method

Adds a NotificationClass to the NotificationClassCollection.

Espacio de nombres: Microsoft.SqlServer.Management.Nmo
Ensamblado: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)

Sintaxis

'Declaración
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
)

Parámetros

Notas

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

Ejemplo

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)

Seguridad para subprocesos

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.

Plataformas

Plataformas de desarrollo

Para obtener una lista de las plataformas compatibles, vea Requisitos de hardware y software para instalar SQL Server 2005.

Plataformas de destino

Para obtener una lista de las plataformas compatibles, vea Requisitos de hardware y software para instalar SQL Server 2005.

Vea también

Referencia

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

Otros recursos

Definir clases de notificación
NotificationClass Element (ADF)