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.
Gets the error associated with the server message event.
Namespace:  Microsoft.SqlServer.Management.Common
Assembly:  Microsoft.SqlServer.ConnectionInfo (in Microsoft.SqlServer.ConnectionInfo.dll)
Syntax
'Declaration
Public ReadOnly Property Error As SqlError 
    Get
'Usage
Dim instance As ServerMessageEventArgs 
Dim value As SqlError 
value = instance.Error
public SqlError Error { get; }
public:
property SqlError^ Error {
    SqlError^ get ();
}
member Error : SqlError
function get Error () : SqlError
Property Value
Type: SqlError
A SqlError system object value that specifies the error associated with the server message event.