AsyncStatus.LastException Property

Gets the most recent exception generated by the asynchronous process.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.SmoExtended (in Microsoft.SqlServer.SmoExtended.dll)

Syntax

'Declaration
Public ReadOnly Property LastException As Exception
    Get
'Usage
Dim instance As AsyncStatus
Dim value As Exception

value = instance.LastException
public Exception LastException { get; }
public:
property Exception^ LastException {
    Exception^ get ();
}
member LastException : Exception
function get LastException () : Exception

Property Value

Type: System.Exception
An Exception system object that specifies the most recent exception generated by the asynchronous process.