共用方式為


ReportServerException 類別

表示在連線到報表伺服器時所發生的錯誤,以及在處理伺服器報表或將報表轉譯為報表頁面配置 (RPL) 格式時報表伺服器上所發生的錯誤。

繼承階層架構

Object
  Exception
    Microsoft.Reporting.WinForms.ReportViewerException
      Microsoft.Reporting.WinForms.ReportServerException
        Microsoft.Reporting.WinForms.MissingEndpointException
        Microsoft.Reporting.WinForms.SoapVersionMismatchException

命名空間:  Microsoft.Reporting.WinForms
組件:  Microsoft.ReportViewer.WinForms (在 Microsoft.ReportViewer.WinForms.dll 中)

語法

'宣告
<SerializableAttribute> _
<StrongNameIdentityPermissionAttribute(SecurityAction.InheritanceDemand, PublicKey := "0024000004800000940000000602000000240000525341310004000001000100272736ad6e5f9586bac2d531eabc3acc666c2f8ec879fa94f8f7b0327d2ff2ed523448f83c3d5c5dd2dfc7bc99c5286b2c125117bf5cbe242b9d41750732b2bdffe649c6efb8e5526d526fdd130095ecdb7bf210809c6cdad8824faa9ac0310ac3cba2aa0523567b2dfa7fe250b30facbd62d4ec99b94ac47c7d3b28f1f6e4c8")> _
Public Class ReportServerException _
    Inherits ReportViewerException
[SerializableAttribute]
[StrongNameIdentityPermissionAttribute(SecurityAction.InheritanceDemand, PublicKey = "0024000004800000940000000602000000240000525341310004000001000100272736ad6e5f9586bac2d531eabc3acc666c2f8ec879fa94f8f7b0327d2ff2ed523448f83c3d5c5dd2dfc7bc99c5286b2c125117bf5cbe242b9d41750732b2bdffe649c6efb8e5526d526fdd130095ecdb7bf210809c6cdad8824faa9ac0310ac3cba2aa0523567b2dfa7fe250b30facbd62d4ec99b94ac47c7d3b28f1f6e4c8")]
public class ReportServerException : ReportViewerException
[SerializableAttribute]
[StrongNameIdentityPermissionAttribute(SecurityAction::InheritanceDemand, PublicKey = L"0024000004800000940000000602000000240000525341310004000001000100272736ad6e5f9586bac2d531eabc3acc666c2f8ec879fa94f8f7b0327d2ff2ed523448f83c3d5c5dd2dfc7bc99c5286b2c125117bf5cbe242b9d41750732b2bdffe649c6efb8e5526d526fdd130095ecdb7bf210809c6cdad8824faa9ac0310ac3cba2aa0523567b2dfa7fe250b30facbd62d4ec99b94ac47c7d3b28f1f6e4c8")]
public ref class ReportServerException : public ReportViewerException
[<SerializableAttribute>]
[<StrongNameIdentityPermissionAttribute(SecurityAction.InheritanceDemand, PublicKey = "0024000004800000940000000602000000240000525341310004000001000100272736ad6e5f9586bac2d531eabc3acc666c2f8ec879fa94f8f7b0327d2ff2ed523448f83c3d5c5dd2dfc7bc99c5286b2c125117bf5cbe242b9d41750732b2bdffe649c6efb8e5526d526fdd130095ecdb7bf210809c6cdad8824faa9ac0310ac3cba2aa0523567b2dfa7fe250b30facbd62d4ec99b94ac47c7d3b28f1f6e4c8")>]
type ReportServerException =  
    class
        inherit ReportViewerException
    end
public class ReportServerException extends ReportViewerException

ReportServerException 類型會公開下列成員。

建構函式

  名稱 描述
受保護的方法 ReportServerException(SerializationInfo, StreamingContext) 基礎架構。 使用序列化資料,初始化 ReportServerException 類別的新執行個體。
受保護的方法 ReportServerException(String, String, Exception) 基礎架構。 使用錯誤訊息、錯誤碼和內部例外狀況,初始化 ReportServerException 類別的新執行個體。

回頁首

屬性

  名稱 描述
公用屬性 Data 取得提供例外狀況之其他使用者定義相關資訊的索引鍵/值組集合。 (繼承自 Exception)。
公用屬性 ErrorCode 從例外狀況中傳回錯誤碼。
公用屬性 HelpLink 取得或設定與這個例外狀況相關聯的說明檔連結。 (繼承自 Exception)。
公用屬性 HResult 取得或設定 HRESULT,它是指派給特定例外狀況的編碼數值。 (繼承自 Exception)。
公用屬性 InnerException 取得造成目前例外狀況的 Exception 執行個體。 (繼承自 Exception)。
公用屬性 Message 取得描述目前例外狀況的訊息。 (繼承自 Exception)。
公用屬性 Source 取得或設定造成錯誤的應用程式或物件的名稱。 (繼承自 Exception)。
公用屬性 StackTrace 取得呼叫堆疊上即時運算框架的字串表示。 (繼承自 Exception)。
公用屬性 TargetSite 取得擲回目前例外狀況的方法。 (繼承自 Exception)。

回頁首

方法

  名稱 描述
公用方法 Equals 判斷指定的物件是否等於目前的物件。 (繼承自 Object)。
受保護的方法 Finalize 在記憶體回收開始前,允許物件嘗試釋放資源,並執行其他清除作業。 (繼承自 Object)。
公用方法 GetBaseException 在衍生類別中覆寫時,傳回一或多個後續的例外狀況的根本原因 Exception。 (繼承自 Exception)。
公用方法 GetHashCode 做為預設雜湊函式。 (繼承自 Object)。
公用方法 GetObjectData 基礎架構。 以例外狀況的相關資訊填入 SerializationInfo 結構。 (覆寫 Exception.GetObjectData(SerializationInfo, StreamingContext)。)
公用方法 GetType 取得目前執行個體的執行階段類型。 (繼承自 Exception)。
受保護的方法 MemberwiseClone 建立目前 Object 的淺層複製 (Shallow Copy) 。 (繼承自 Object)。
公用方法 ToString 建立並傳回目前例外狀況的字串表示。 (繼承自 Exception)。

回頁首

事件

  名稱 描述
受保護的事件 SerializeObjectState 當例外狀況序列化,以建立包含例外狀況相關序列化資料的例外狀況狀態物件時,就會發生此事件。 (繼承自 Exception)。

回頁首

執行緒安全

這個類型的任何 Public static (在 Visual Basic 中為 Shared) 成員都是安全執行緒。不保證任何執行個體成員是安全執行緒。

請參閱

參考

Microsoft.Reporting.WinForms 命名空間