Udostępnij za pośrednictwem


DataServiceClientException Constructor (String, Int32)

Initializes a new instance of the DataServiceClientException class.

Namespace:  System.Data.Services.Client
Assembly:  Microsoft.Data.Services.Client (in Microsoft.Data.Services.Client.dll)

Syntax

'Declaration
Public Sub New ( _
    message As String, _
    statusCode As Integer _
)
'Usage
Dim message As String 
Dim statusCode As Integer 

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

Parameters

  • message
    Type: System.String
    The string value that contains the error message.
  • statusCode
    Type: System.Int32
    The integer value that contains status code.

See Also

Reference

DataServiceClientException Class

DataServiceClientException Overload

System.Data.Services.Client Namespace