此 API 支持 基础结构,但不能通过代码直接使用。
使用错误消息、错误代码和内部异常初始化 ReportServerException 类的新实例。
命名空间: Microsoft.Reporting.WinForms
程序集: Microsoft.ReportViewer.WinForms(在 Microsoft.ReportViewer.WinForms.dll 中)
语法
声明
Protected Sub New ( _
message As String, _
errorCode As String, _
innerException As Exception _
)
用法
Dim message As String
Dim errorCode As String
Dim innerException As Exception
Dim instance As New ReportServerException(message, _
errorCode, innerException)
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
类型:System.String
描述错误的消息。
- errorCode
类型:System.String
异常的错误代码。
- innerException
类型:System.Exception
导致当前异常的内部异常,如果未给定内部异常,则 nullnull 引用(在 Visual Basic 中为 Nothing)。