Compartilhar via


DomainOperationException Constructor (String, Exception)

[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 a specified error message and a reference to the inner exception that is the cause of this 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, _
    innerException As Exception _
)
'Usage
Dim message As String
Dim innerException As Exception

Dim instance As New DomainOperationException(message, _
    innerException)
public DomainOperationException(
    string message,
    Exception innerException
)
public:
DomainOperationException(
    String^ message, 
    Exception^ innerException
)
new : 
        message:string * 
        innerException:Exception -> DomainOperationException
public function DomainOperationException(
    message : String, 
    innerException : Exception
)

Parameters

  • message
    Type: System.String
    The message that describes the exception. The caller of this constructor is required to ensure that this string has been localized for the current system culture.
  • innerException
    Type: System.Exception
    The exception that is the cause of the current exception. If the innerException parameter is not nulla null reference (Nothing in Visual Basic), the current exception is thrown in a catch block that handles the inner exception.

See Also

Reference

DomainOperationException Class

DomainOperationException Overload

System.ServiceModel.DomainServices.Client Namespace