Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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 | |
|---|---|---|
| .gif) | ServerMessageEventArgs | Initializes a new instance of the ServerMessageEventArgs class for the specified event and with the specified error. | 
Top
Properties
| Name | Description | |
|---|---|---|
| .gif) | Error | Gets the error associated with the server message event. | 
Top
Methods
| Name | Description | |
|---|---|---|
| .gif) | Equals | (Inherited from Object.) | 
| .gif) | Finalize | (Inherited from Object.) | 
| .gif) | GetHashCode | (Inherited from Object.) | 
| .gif) | GetType | (Inherited from Object.) | 
| .gif) | MemberwiseClone | (Inherited from Object.) | 
| .gif) | 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.