Condividi tramite


Classe ServerMessageEventArgs

The ServerMessageEventArgs class represents the arguments used when a server message event is raised.

Gerarchia di ereditarietà

System. . :: . .Object
  System. . :: . .EventArgs
    Microsoft.SqlServer.Management.Common..::..ServerMessageEventArgs
      Microsoft.SqlServer.Management.Smo. . :: . .PercentCompleteEventArgs

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

Sintassi

'Dichiarazione
Public Class ServerMessageEventArgs _
    Inherits EventArgs
'Utilizzo
Dim instance As ServerMessageEventArgs
public class ServerMessageEventArgs : EventArgs
public ref class ServerMessageEventArgs : public EventArgs
type ServerMessageEventArgs =  
    class
        inherit EventArgs
    end
public class ServerMessageEventArgs extends EventArgs

Nel tipo ServerMessageEventArgs sono esposti i membri seguenti.

Costruttori

  Nome Descrizione
Metodo pubblico ServerMessageEventArgs Initializes a new instance of the ServerMessageEventArgs class for the specified event and with the specified error.

In alto

Proprietà

  Nome Descrizione
Proprietà pubblica Error Gets the error associated with the server message event.

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 Returns a String that represents the ServerMessageEventArgs object. Esegue l'override di Object. . :: . .ToString() () () ().

In alto

Osservazioni

The ServerMessageEventArgs class is used by the ServerMessageEventHandler when a server message event occurs.

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.