共用方式為


ReportServerException 建構函式 (String, String, Exception)

這個應用程式開發介面支援 .NET Framework 基礎結構,但您不可以直接在程式碼中使用它。

使用錯誤訊息、錯誤碼和內部例外狀況,初始化 ReportServerException 類別的新執行個體。

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

語法

'宣告
Protected Sub New ( _
    message As String, _
    errorCode As String, _
    innerException As Exception _
)
protected ReportServerException(
    string message,
    string errorCode,
    Exception innerException
)
protected:
ReportServerException(
    String^ message, 
    String^ errorCode, 
    Exception^ innerException
)
new : 
        message:string * 
        errorCode:string * 
        innerException:Exception -> ReportServerException
protected function ReportServerException(
    message : String, 
    errorCode : String, 
    innerException : Exception
)

參數

  • message
    類型:String
    描述錯誤的訊息。
  • errorCode
    類型:String
    例外狀況的錯誤碼。
  • innerException
    類型:Exception
    導致目前例外狀況發生的內部例外狀況,如果沒有指定任何的內部例外狀況,則為 nullnull 參考 (即 Visual Basic 中的 Nothing)。

請參閱

參考

ReportServerException 類別

ReportServerException 多載

Microsoft.Reporting.WinForms 命名空間