DomainOperationException Constructor (String, OperationErrorStatus, 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 DomainOperationException class with optional localized message, status, custom error code, and stack trace of the exception.
Namespace: System.ServiceModel.DomainServices.Client
Assembly: System.ServiceModel.DomainServices.Client (in System.ServiceModel.DomainServices.Client.dll)
Syntax
'Declaration
Public Sub New ( _
message As String, _
status As OperationErrorStatus, _
errorCode As Integer, _
stackTrace As String _
)
'Usage
Dim message As String
Dim status As OperationErrorStatus
Dim errorCode As Integer
Dim stackTrace As String
Dim instance As New DomainOperationException(message, _
status, errorCode, stackTrace)
public DomainOperationException(
string message,
OperationErrorStatus status,
int errorCode,
string stackTrace
)
public:
DomainOperationException(
String^ message,
OperationErrorStatus status,
int errorCode,
String^ stackTrace
)
new :
message:string *
status:OperationErrorStatus *
errorCode:int *
stackTrace:string -> DomainOperationException
public function DomainOperationException(
message : String,
status : OperationErrorStatus,
errorCode : int,
stackTrace : String
)
Parameters
- message
Type: System.String
The localized error message.
- status
Type: System.ServiceModel.DomainServices.Client.OperationErrorStatus
The status of the exception.
- errorCode
Type: System.Int32
The custom error code.
- stackTrace
Type: System.String
The stack trace of the exception.
See Also
Reference
DomainOperationException Class