Export (0) Print
Expand All

ServerMessageEventArgs Class

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

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)

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 ObjectToString.)
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.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft