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

Represents an asynchronous operation.

Inheritance Hierarchy


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


Public MustInherit Class OperationBase _
    Implements INotifyPropertyChanged
Dim instance As OperationBase
public abstract class OperationBase : INotifyPropertyChanged
public ref class OperationBase abstract : INotifyPropertyChanged
type OperationBase =  
        interface INotifyPropertyChanged
public abstract class OperationBase implements INotifyPropertyChanged

The OperationBase type exposes the following members.


Name Description
Protected method OperationBase Initializes a new instance of the OperationBase class.



Name Description
Public property CanCancel Gets a value that indicates whether this OperationBase is currently in a state that enables it to be canceled.
Public property Error Gets the operation error if the operation failed.
Public property HasError Gets a value that indicates whether the operation failed.
Public property IsCanceled Gets a value that indicates whether this operation has been canceled.
Public property IsComplete Gets a value that indicates whether this operation has completed.
Public property IsErrorHandled Gets or sets a value that indicates whether the operation error has been handled.
Protected property Result Gets the result of the asynchronous operation.
Protected property SupportsCancellation Gets a value that indicates whether this operation supports cancellation.
Public property UserState Gets the optional user state for this operation.



Name Description
Public method Cancel Cancels the operation.
Protected method CancelCore When overridden in a derived class, provides the logic to cancel the operation.
Protected method Complete(Exception) Completes a failed operation with the specified error.
Protected method Complete(Object) Completes a successful operation with the specified result.
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method InvokeCompleteAction Invokes the completion callback.
Public method MarkErrorAsHandled Specifies that an error encountered in an operation is handled.
Protected method MemberwiseClone (Inherited from Object.)
Protected method OnPropertyChanged Called when the value of a property changes.
Protected method RaisePropertyChanged Raises the System#ComponentModel#INotifyPropertyChanged#PropertyChanged() event.
Public method ToString (Inherited from Object.)



Name Description
Public event Completed Occurs when the operation completes.


Explicit Interface Implementations

Name Description
Explicit interface implemetationPrivate event INotifyPropertyChanged.PropertyChanged Occurs when a property value changes.


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


System.ServiceModel.DomainServices.Client Namespace