Поделиться через


Application.EventClasses Property

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

Пространство имен: Microsoft.SqlServer.Management.Nmo
Сборка: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)

Синтаксис

'Декларация
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

Значение свойства

A EventClassCollection object.

Замечания

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.

Пример

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)

Синхронизация потоков

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.

Платформы

Платформы разработки

Список поддерживаемых платформ см. в разделе Hardware and Software Requirements for Installing SQL Server 2005.

Целевые платформы

Список поддерживаемых платформ см. в разделе Hardware and Software Requirements for Installing SQL Server 2005.

См. также

Справочник

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

Другие ресурсы

Определение классов событий
EventClasses Element (ADF)