ServerEventArgs Class
Collapse the table of content
Expand the table of content

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.


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

public sealed class ServerEventArgs : EventArgs

The ServerEventArgs type exposes the following members.

Public propertyEventTypeGets the type of event.
Public propertyPostTimeGets the date and time at which the argument was posted.
Public propertyPropertiesRepresents a collection of EventProperty objects. Each EventProperty object represents a property of a server event.
Public propertySpidGets the server process identifier (SPID) of the event.
Public propertySqlInstanceGets the instance of SQL Server on which the event occurred.

Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)

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.

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

Community Additions

© 2016 Microsoft