Compartir a través de


Application.EventClasses Property

Gets a EventClassCollection object, which contains the set of event classes for the Notification Services application.

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

Sintaxis

'Declaración
Public ReadOnly Property EventClasses As EventClassCollection
public EventClassCollection EventClasses { get; }
public:
property EventClassCollection^ EventClasses {
    EventClassCollection^ get ();
}
/** @property */
public EventClassCollection get_EventClasses ()
public function get EventClasses () : EventClassCollection

Valor de propiedad

A EventClassCollection object.

Notas

Event classes define the event tables, views, and rules used to store and maintain event data. Applications can have zero or more event classes. If an application does not have an event class, the notification generation rules query other sources for event data.

Use the methods of the EventClassCollection class to add or remove EventClass objects.

Ejemplo

The following examples show how to add an event class to an application using this EventClasses property:

myApplication.EventClasses.Add(flightEvents);
myApplication.EventClasses.Add(flightEvents)

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

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

Otros recursos

Definir clases de eventos
EventClasses Element (ADF)