ServerMessageEventArgs.Error Property

Gets the error associated with the server message event.

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

public SqlError Error { get; }

Property Value

Type: SqlError
A SqlError system object value that specifies the error associated with the server message event.

Community Additions

Show: