共用方式為


Exception 屬性

Gets the exception that was thrown while executing the batch.

命名空間:  Microsoft.SqlServer.Management.MultiServerConnection
組件:  Microsoft.SqlServer.Management.MultiServerConnection (在 Microsoft.SqlServer.Management.MultiServerConnection.dll 中)

語法

'宣告
ReadOnly Property Exception As Exception
    Get
'用途
Dim instance As IResultInfo
Dim value As Exception

value = instance.Exception
Exception Exception { get; }
property Exception^ Exception {
    Exception^ get ();
}
abstract Exception : Exception
function get Exception () : Exception

屬性值

型別:System. . :: . .Exception
An Exception value containing the exception that was thrown while executing the Transact-SQL batch, or nullNothingnullptrunitnull 參考 (在 Visual Basic 中為 Nothing) if no exception was thrown.