Share via


ServerMessageEventArgs Class

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

Inheritance Hierarchy

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

Namespace:  Microsoft.SqlServer.Management.Common
Assembly:  Microsoft.SqlServer.ConnectionInfo (in Microsoft.SqlServer.ConnectionInfo.dll)

Syntax

'Declaration
Public Class ServerMessageEventArgs _
    Inherits EventArgs
'Usage
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

The ServerMessageEventArgs type exposes the following members.

Constructors

  Name Description
Public method ServerMessageEventArgs Initializes a new instance of the ServerMessageEventArgs class for the specified event and with the specified error.

Top

Properties

  Name Description
Public property Error Gets the error associated with the server message event.

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 Returns a String that represents the ServerMessageEventArgs object. (Overrides ObjectToString.)

Top

Remarks

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

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.

See Also

Reference

Microsoft.SqlServer.Management.Common Namespace