ServerEvents Class

 

The ServerEvents object represents the settings required for SQL Server server-level event notification.

Namespace:   Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

System.Object
  Microsoft.SqlServer.Management.Smo.ServerEvents

No code example is currently available or this language may not be supported.

NameDescription
System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_pubmethodGetEventSelection()

Returns the currently selected event notifications.

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetTraceEventSelection()

Returns the currently selected event notifications.

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodSetCredentials(String, String)

Sets the credentials required by the instance of Microsoft SQL Server.

System_CAPS_pubmethodStartEvents()

Starts receiving events.

System_CAPS_pubmethodStopEvents()

Stops receiving events.

System_CAPS_pubmethodSubscribeToEvents(ServerEventSet)

Specifies the server events to receive.

System_CAPS_pubmethodSubscribeToEvents(ServerEventSet, ServerEventHandler)

Specifies the server events to receive and the event handler that handles the events.

System_CAPS_pubmethodSubscribeToEvents(ServerTraceEventSet)

Specifies the server trace events to receive.

System_CAPS_pubmethodSubscribeToEvents(ServerTraceEventSet, ServerEventHandler)

Specifies the server trace events to receive and the event handler that handles the events.

System_CAPS_pubmethodToString()

(Inherited from Object.)

System_CAPS_pubmethodUnsubscribeAllEvents()

Clears all event settings, and removes all event handlers.

System_CAPS_pubmethodUnsubscribeFromEvents(ServerEventSet)

Clears the specified event settings, and removes all event handlers.

System_CAPS_pubmethodUnsubscribeFromEvents(ServerTraceEventSet)

Clears the specified event settings, and removes all event handlers.

NameDescription
System_CAPS_pubeventServerEvent

Specifies the event raised when an event occurs in Server object and the user has subscribed to the events from that object instance.

The ServerEvents class is accessed through Events property and cannot be created as a stand-alone object.

Any public static (Shared in Microsoft Visual Basic) members of this type are safe for multithreaded operations. Any instance members are not guaranteed to be thread safe.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: