如果專案因為例外狀況而關閉,則取得或設定發生的例外狀況。
命名空間: 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)
屬性值
備註
如果正常關閉該專案,則此屬性為 null。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。