如果發生例外狀況,便包含 Exception 物件。
命名空間: Microsoft.Reporting.WinForms
組件: Microsoft.ReportViewer.WinForms (在 Microsoft.ReportViewer.WinForms.dll 中)
語法
'宣告
Public ReadOnly Property Exception As Exception
Get
'用途
Dim instance As RenderingCompleteEventArgs
Dim value As Exception
value = instance.Exception
public Exception Exception { get; }
public:
property Exception^ Exception {
Exception^ get ();
}
member Exception : Exception
function get Exception () : Exception
屬性值
型別:System.Exception
如果在報表轉譯期間發生例外狀況,便是 Exception 物件,如果未發生例外狀況,便是 nullnull 參考 (在 Visual Basic 中為 Nothing)。