DomainException Constructor (String, Int32, String)

[WCF RIA Services Version 1 Service Pack 2 is compatible with either .NET framework 4 or .NET Framework 4.5, and with either Silverlight 4 or Silverlight 5.]

Initializes a new instance of the DomainException class with a localized exception message, a custom error code and a stack trace.

Namespace:  System.ServiceModel.DomainServices.Client
Assembly:  System.ServiceModel.DomainServices.Client (in System.ServiceModel.DomainServices.Client.dll)

Syntax

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

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

Parameters

  • errorCode
    Type: System.Int32
    The custom error code for the exception.

See Also

Reference

DomainException Class

DomainException Overload

System.ServiceModel.DomainServices.Client Namespace