Share via


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.

Inheritance Hierarchy

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

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

Syntax

'Declaration
Public NotInheritable Class ServerEventArgs _
    Inherits EventArgs
'Usage
Dim instance As ServerEventArgs
public sealed class ServerEventArgs : EventArgs
public ref class ServerEventArgs sealed : public EventArgs
[<SealedAttribute>]
type ServerEventArgs =  
    class
        inherit EventArgs
    end
public final class ServerEventArgs extends EventArgs

The ServerEventArgs type exposes the following members.

Properties

  Name Description
Public property EventType Gets the type of event.
Public property PostTime Gets the date and time at which the argument was posted.
Public property Properties Represents a collection of EventProperty objects. Each EventProperty object represents a property of a server event.
Public property Spid Gets the server process identifier (SPID) of the event.
Public property SqlInstance Gets the instance of SQL Server on which the event occurred.

Top

Methods

  Name Description
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString (Inherited from Object.)

Top

Remarks

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.

Thread Safety

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