DataServiceException 构造函数 (Int32, String, String, String, Exception)

初始化 DataServiceException 类的新实例。

命名空间:  System.Data.Services
程序集:  Microsoft.Data.Services(在 Microsoft.Data.Services.dll 中)

语法

声明
Public Sub New ( _
    statusCode As Integer, _
    errorCode As String, _
    message As String, _
    messageXmlLang As String, _
    innerException As Exception _
)
用法
Dim statusCode As Integer
Dim errorCode As String
Dim message As String
Dim messageXmlLang As String
Dim innerException As Exception

Dim instance As New DataServiceException(statusCode, _
    errorCode, message, messageXmlLang, _
    innerException)
public DataServiceException(
    int statusCode,
    string errorCode,
    string message,
    string messageXmlLang,
    Exception innerException
)
public:
DataServiceException(
    int statusCode, 
    String^ errorCode, 
    String^ message, 
    String^ messageXmlLang, 
    Exception^ innerException
)
new : 
        statusCode:int * 
        errorCode:string * 
        message:string * 
        messageXmlLang:string * 
        innerException:Exception -> DataServiceException
public function DataServiceException(
    statusCode : int, 
    errorCode : String, 
    message : String, 
    messageXmlLang : String, 
    innerException : Exception
)

参数

  • statusCode
    类型:System.Int32
    异常的 HTTP 状态代码。
  • errorCode
    类型:System.String
    包含错误代码的字符串值。
  • message
    类型:System.String
    包含错误消息的字符串值。
  • messageXmlLang
    类型:System.String
    指示错误消息的语言的字符串值。

请参阅

参考

DataServiceException 类

DataServiceException 重载

System.Data.Services 命名空间