此 API 支持 .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)。