共用方式為


ProjectClosedEventArgs.CaughtException 屬性

如果專案因為例外狀況而關閉,則取得或設定發生的例外狀況。

命名空間:  Microsoft.VisualStudio.Data.Schema.Package.Project
組件:  Microsoft.VisualStudio.Data.Schema.Package (在 Microsoft.VisualStudio.Data.Schema.Package.dll 中)

語法

'宣告
Public Property CaughtException As Exception
    Get
    Private Set
public Exception CaughtException { get; private set; }
public:
property Exception^ CaughtException {
    Exception^ get ();
    private: void set (Exception^ value);
}
member CaughtException : Exception with get, private set
function get CaughtException () : Exception
private function set CaughtException (value : Exception)

屬性值

型別:System.Exception

備註

如果正常關閉該專案,則此屬性為 null。

.NET Framework 安全性

請參閱

參考

ProjectClosedEventArgs 類別

Microsoft.VisualStudio.Data.Schema.Package.Project 命名空間