Share via


ServerEvents Class

Definition

Class that encapsulates all functionality related to Server Events.

public sealed class ServerEvents
type ServerEvents = class
Public NotInheritable Class ServerEvents
Inheritance
ServerEvents

Methods

GetEventSelection()

Returns current selection of server events. This method returns a copy of event selection which can be modified and submitted back through SubscribeToEvents method.

GetTraceEventSelection()

Returns current selection of server trace events. This method returns a copy of event selection which can be modified and submitted back through SubscribeToEvents method.

StartEvents()

Starts event notifications. This method must be called to start receiving notifications.

StopEvents()

Stops event notifications.

SubscribeToEvents(ServerEventSet, ServerEventHandler)

Subscribes to a set of events on a server. Notifications for those events will be raised using an event handler provided to this method. Each time this method is called a new set of events is added to already subscribed events. If an event is already subscribed its exisitng handler will be replaced by the new handler passed to this method.

SubscribeToEvents(ServerEventSet)

Subscribes to a set of events on a server. Notifications for those events will be raised using a default handler on this class. Each time this method is called a new set of events is added to already subscribed events.

SubscribeToEvents(ServerTraceEventSet, ServerEventHandler)

Subscribes to a set of trace events on a server. Notifications for those events will be raised using an event handler provided to this method. Each time this method is called a new set of events is added to already subscribed events. If an event is already subscribed its exisitng handler will be replaced by the new handler passed to this method.

SubscribeToEvents(ServerTraceEventSet)

Subscribes to a set of trace events on a server. Notifications for those events will be raised using a default handler on this class. Each time this method is called a new set of events is added to already subscribed events.

UnsubscribeAllEvents()

Unsubscribes from all events and releases all memory allocated for events subscriptions.

UnsubscribeFromEvents(ServerEventSet)

Unsubscribes from a set of events.

UnsubscribeFromEvents(ServerTraceEventSet)

Unsubscribes from a set of trace events.

Events

ServerEvent

A default event handler. Add your handlers here in order to recieve notifiactions.

Applies to