ServerMessageEventArgs.Exception Property
Gets the exception that was thrown while executing the Transact-SQL batch.
Namespace: Microsoft.SqlServer.Management.MultiServerConnection
Assembly: Microsoft.SqlServer.Management.MultiServerConnection (in Microsoft.SqlServer.Management.MultiServerConnection.dll)
Syntax
'Declaration
Public ReadOnly Property Exception As Exception
Get
'Usage
Dim instance As ServerMessageEventArgs
Dim value As Exception
value = instance.Exception
public Exception Exception { get; }
public:
virtual property Exception^ Exception {
Exception^ get () sealed;
}
abstract Exception : Exception
override Exception : Exception
final function get Exception () : Exception
Property Value
Type: System.Exception
The exception thrown during the Transact-SQL execution.