ServerEventArgs ServerEventArgs ServerEventArgs Class


The ServerEventArgs object provides programmatic access to the arguments that are used to report all types of events that occur on an instance of SQL Server.

public ref class ServerEventArgs sealed : EventArgs
public sealed class ServerEventArgs : EventArgs
Public NotInheritable Class ServerEventArgs
Inherits EventArgs


Handling SMO Events


Thread Safety

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.


EventType EventType EventType

Gets the type of event.

PostTime PostTime PostTime

Gets the date and time at which the argument was posted.

Properties Properties Properties

Represents a collection of EventProperty objects. Each EventProperty object represents a property of a server event.

Spid Spid Spid

Gets the server process identifier (SPID) of the event.

SqlInstance SqlInstance SqlInstance

Gets the instance of SQL Server on which the event occurred.

Applies to