Export (0) Print
Expand All
0 out of 1 rated this helpful - Rate this topic

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.

System.Object
  System.EventArgs
    Microsoft.SqlServer.Management.Smo.ServerEventArgs

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.

  NameDescription
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.
Top
  NameDescription
Public methodEquals (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodToString (Inherited from Object.)
Top

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.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.