Application.EventClasses Property
Gets a EventClassCollection object, which contains the set of event classes for the Notification Services application.
Spazio dei nomi: Microsoft.SqlServer.Management.Nmo
Assembly : Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)
Sintassi
'Dichiarazione
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
Valore proprietà
A EventClassCollection object.
Osservazioni
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.
Esempio
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)
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.
Piattaforme
Piattaforme di sviluppo
Per un elenco delle piattaforme supportate, vedere Requisiti hardware e software per l'Installazione di SQL Server 2005.
Piattaforme di destinazione
Per un elenco delle piattaforme supportate, vedere Requisiti hardware e software per l'Installazione di SQL Server 2005.
Vedere anche
Riferimento
Application Class
Application Members
Microsoft.SqlServer.Management.Nmo Namespace
Altre risorse
Definizione delle classi di evento
EventClasses Element (ADF)