DomainOperationException.ErrorCode Property

[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.]

Gets or sets the custom error code for this exception. The error code can be any user-defined value.

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

Syntax

'Declaration
Public Property ErrorCode As Integer
    Get
    Set
'Usage
Dim instance As DomainOperationException
Dim value As Integer

value = instance.ErrorCode

instance.ErrorCode = value
public int ErrorCode { get; set; }
public:
property int ErrorCode {
    int get ();
    void set (int value);
}
member ErrorCode : int with get, set
function get ErrorCode () : int
function set ErrorCode (value : int)

Property Value

Type: System.Int32
The custom error code.

See Also

Reference

DomainOperationException Class

System.ServiceModel.DomainServices.Client Namespace