Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

ServerMessageEventArgs Class

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

System.Object
  System.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)

public class ServerMessageEventArgs : EventArgs

The ServerMessageEventArgs type exposes the following members.

  NameDescription
Public methodServerMessageEventArgsInitializes a new instance of the ServerMessageEventArgs class for the specified event and with the specified error.
Top

  NameDescription
Public propertyErrorGets the error associated with the server message event.
Top

  NameDescription
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToStringReturns a String that represents the ServerMessageEventArgs object. (Overrides Object.ToString().)
Top

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.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Community Additions

ADD
Show:
© 2015 Microsoft