Condividi tramite


Classe ServerEventArgs

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.

Gerarchia di ereditarietà

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

Spazio dei nomi  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Sintassi

'Dichiarazione
Public NotInheritable Class ServerEventArgs _
    Inherits EventArgs
'Utilizzo
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

Nel tipo ServerEventArgs sono esposti i membri seguenti.

Proprietà

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

In alto

Metodi

  Nome Descrizione
Metodo pubblico Equals Ereditato da Object.
Metodo protetto Finalize Ereditato da Object.
Metodo pubblico GetHashCode Ereditato da Object.
Metodo pubblico GetType Ereditato da Object.
Metodo protetto MemberwiseClone Ereditato da Object.
Metodo pubblico ToString Ereditato da Object.

In alto

Osservazioni

Thread Safety

Tutti i membri statici pubblici (Shared in Microsoft Visual Basic) di questo tipo sono sicuri per le operazioni a thread multipli. Non è invece garantita la sicurezza dei membri dell'istanza.

Protezione dei thread

I membri static (Shared in Visual Basic) pubblici di questo tipo sono affidabili. Non è invece garantita la sicurezza dei membri dell'istanza.