DomainException Constructor (String, Int32)
[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 that has the specified error message and a custom error code.
Namespace: System.ServiceModel.DomainServices.Server
Assembly: System.ServiceModel.DomainServices.Server (in System.ServiceModel.DomainServices.Server.dll)
Syntax
'Declaration
Public Sub New ( _
message As String, _
errorCode As Integer _
)
'Usage
Dim message As String
Dim errorCode As Integer
Dim instance As New DomainException(message, _
errorCode)
public DomainException(
string message,
int errorCode
)
public:
DomainException(
String^ message,
int errorCode
)
new :
message:string *
errorCode:int -> DomainException
public function DomainException(
message : String,
errorCode : int
)
Parameters
- message
Type: System.String
The localized error message.
- errorCode
Type: System.Int32
The custom error code for the exception.