CheckoutException 類別

定義

當嘗試借入已輸入原始碼管理程式的檔案被取消或失敗時,會拋出例外。

public ref class CheckoutException : System::Runtime::InteropServices::ExternalException
public class CheckoutException : System.Runtime.InteropServices.ExternalException
[System.Serializable]
public class CheckoutException : System.Runtime.InteropServices.ExternalException
type CheckoutException = class
    inherit ExternalException
[<System.Serializable>]
type CheckoutException = class
    inherit ExternalException
Public Class CheckoutException
Inherits ExternalException
繼承
屬性

範例

以下程式碼範例示範拋出 CheckoutException

// Throws a checkout exception with a message and error code.
throw gcnew CheckoutException( "This is an example exception", 0 );
// Throws a checkout exception with a message and error code.
throw new CheckoutException("This is an example exception", 0);
' Throws a checkout exception with a message and error code.
Throw New CheckoutException("This is an example exception", 0)

建構函式

名稱 Description
CheckoutException()

初始化一個新的類別實例 CheckoutException ,且無相關訊息或錯誤碼。

CheckoutException(SerializationInfo, StreamingContext)

利用指定的序列化資料與上下文初始化該類別的新 CheckoutException 實例。

CheckoutException(String, Exception)

初始化一個帶有指定詳細描述與例外的新類別實例 CheckoutException

CheckoutException(String, Int32)

初始化一個新的類別實例 CheckoutException ,並以指定的訊息與錯誤碼。

CheckoutException(String)

初始化一個新的類別實例 CheckoutException ,並以指定訊息進行。

欄位

名稱 Description
Canceled

初始化一個新的類別實例 CheckoutException ,指定該檢查被取消。 此欄位僅供讀取。

屬性

名稱 Description
Data

取得索引鍵/值組的集合,提供例外狀況的其他使用者定義資訊。

(繼承來源 Exception)
ErrorCode

明白 HRESULT 了錯誤。

(繼承來源 ExternalException)
HelpLink

取得或設定與這個例外狀況相關聯的說明檔連結。

(繼承來源 Exception)
HResult

取得或設定 HRESULT,這是指派給特定例外狀況的編碼數值。

(繼承來源 Exception)
InnerException

會取得 Exception 造成目前例外的實例。

(繼承來源 Exception)
Message

取得描述目前例外狀況的訊息。

(繼承來源 Exception)
Source

取得或設定造成錯誤之應用程式或物件的名稱。

(繼承來源 Exception)
StackTrace

取得呼叫堆疊上即時框架的字串表示。

(繼承來源 Exception)
TargetSite

取得擲回目前例外狀況的方法。

(繼承來源 Exception)

方法

名稱 Description
Equals(Object)

判斷指定的 物件是否等於目前的物件。

(繼承來源 Object)
GetBaseException()

當在派生類別中被覆寫時,回傳 Exception 是一個或多個後續例外的根因。

(繼承來源 Exception)
GetHashCode()

做為預設雜湊函式。

(繼承來源 Object)
GetObjectData(SerializationInfo, StreamingContext)

在衍生類別中覆寫時,使用例外狀況的相關信息來設定 SerializationInfo

(繼承來源 Exception)
GetType()

取得目前實例的運行時間類型。

(繼承來源 Exception)
MemberwiseClone()

建立目前 Object的淺層複本。

(繼承來源 Object)
ToString()

回傳包含錯誤 HRESULT 的字串。

(繼承來源 ExternalException)

事件

名稱 Description
SerializeObjectState

發生於例外狀況串行化以建立例外狀況狀態物件,其中包含例外狀況的串行化數據。

(繼承來源 Exception)

適用於