OperationException Class

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

This exception that is thrown by generated domain service proxies when errors are encountered during invocation of domain service operations.

Inheritance Hierarchy

System.Object
  System.Exception
    Microsoft.ServiceModel.DomainServices.Hosting.Local.OperationException

Namespace:  Microsoft.ServiceModel.DomainServices.Hosting.Local
Assembly:  System.ServiceModel.DomainServices.Hosting.OData (in System.ServiceModel.DomainServices.Hosting.OData.dll)

Syntax

'Declaration
<SerializableAttribute> _
Public NotInheritable Class OperationException _
    Inherits Exception
'Usage
Dim instance As OperationException
[SerializableAttribute]
public sealed class OperationException : Exception
[SerializableAttribute]
public ref class OperationException sealed : public Exception
[<SealedAttribute>]
[<SerializableAttribute>]
type OperationException =  
    class
        inherit Exception
    end
public final class OperationException extends Exception

The OperationException type exposes the following members.

Properties

  Name Description
Public property Data (Inherited from Exception.)
Public property HelpLink (Inherited from Exception.)
Protected property HResult (Inherited from Exception.)
Public property InnerException (Inherited from Exception.)
Public property Message (Inherited from Exception.)
Public property OperationErrors Gets a collection of ValidationResultInfo objects associated with this exception.
Public property Source (Inherited from Exception.)
Public property StackTrace (Inherited from Exception.)
Public property TargetSite (Inherited from Exception.)

Top

Methods

  Name Description
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetBaseException (Inherited from Exception.)
Public method GetHashCode (Inherited from Object.)
Public method GetObjectData (Inherited from Exception.)
Public method GetType (Inherited from Exception.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString (Inherited from Exception.)

Top

Remarks

This class is only available in the WCF RIA Services Toolkit. You can download the toolkit from the WCF RIA Services download site.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.ServiceModel.DomainServices.Hosting.Local Namespace