語言

ComErrorException 類別

定義

當複製代理提出一般錯誤時拋出的例外。

public ref class ComErrorException sealed : System::Runtime::InteropServices::COMException
[System.Runtime.InteropServices.ComVisible(false)]
[System.Serializable]
public sealed class ComErrorException : System.Runtime.InteropServices.COMException
[<System.Runtime.InteropServices.ComVisible(false)>]
[<System.Serializable>]
type ComErrorException = class
    inherit COMException
Public NotInheritable Class ComErrorException
Inherits COMException
繼承
ComErrorException
屬性

建構函式

名稱 Description
ComErrorException()

初始化 ComErrorException 類別的新執行個體。

ComErrorException(Int32, String, Int32, String, String, Guid, String)

初始化 ComErrorException 類別的新執行個體。

ComErrorException(String, Exception)

初始化類別的新實例 ComErrorException ,並附上指定的錯誤訊息及導致該異常的內部例外的參考。

ComErrorException(String)

使用指定的錯誤訊息,初始化 ComErrorException 類別的新實例。

屬性

名稱 Description
ComHResult

會取得與此例外相關的錯誤代碼(HRESULT)值。

Description

會得到錯誤的描述。

ErrorMessage

會收到錯誤訊息字串。

HelpContext

在說明檔案中取得主題的上下文。

HelpFile

會取得完整合格路徑,進入幫助檔案。

InterfaceId

取得錯誤來源 COM 介面的識別碼。

Source

取得錯誤來源的物件或應用程式名稱。

方法

名稱 Description
GetObjectData(SerializationInfo, StreamingContext)

設定 所指定的 SerializationInfo 並附有例外的資訊。

適用於