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 | |
---|---|---|
ServerMessageEventArgs | Initializes a new instance of the ServerMessageEventArgs class for the specified event and with the specified error. |
Top
Properties
Name | Description | |
---|---|---|
Error | Gets the error associated with the server message event. |
Top
Methods
Name | Description | |
---|---|---|
Equals | (Inherited from Object.) | |
Finalize | (Inherited from Object.) | |
GetHashCode | (Inherited from Object.) | |
GetType | (Inherited from Object.) | |
MemberwiseClone | (Inherited from Object.) | |
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.