DataServiceException 构造函数 (Int32, String)

初始化 DataServiceException 类的新实例。

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

语法

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

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

参数

  • statusCode
    类型:System.Int32
    异常返回的 HTTP 状态代码。

请参阅

参考

DataServiceException 类

DataServiceException 重载

System.Data.Services 命名空间