다음을 통해 공유


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
    오류 메시지의 언어를 나타내는 문자열 값입니다.
  • innerException
    유형: System.Exception
    현재 예외의 원인인 예외입니다.

참고 항목

참조

DataServiceException 클래스

DataServiceException 오버로드

System.Data.Services 네임스페이스