OperationBase.CanCancel 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 a value that indicates whether this OperationBase is currently in a state that enables it to be canceled.

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

Syntax

'Declaration
Public ReadOnly Property CanCancel As Boolean
    Get
'Usage
Dim instance As OperationBase
Dim value As Boolean

value = instance.CanCancel
public bool CanCancel { get; }
public:
property bool CanCancel {
    bool get ();
}
member CanCancel : bool
function get CanCancel () : boolean

Property Value

Type: System.Boolean
true if this OperationBase is currently in a state that enables it to be canceled; otherwise, false.

Remarks

If the SupportsCancellation property is false, this operation does not support cancellation and CanCancel will always return false. The default implementation does not support cancellation.

The operation can be canceled if it supports cancellation and has not already completed.

See Also

Reference

OperationBase Class

System.ServiceModel.DomainServices.Client Namespace

SupportsCancellation