初始化 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
字串值,表示錯誤消息的語言。
- innerException
型別:System.Exception
做為目前例外狀況發生原因的例外狀況。