Condividi tramite


IUIThreadOperationContext.AllowCancellation Property

Definition

Gets whether the operation can be cancelled.

public:
 property bool AllowCancellation { bool get(); };
public bool AllowCancellation { get; }
member this.AllowCancellation : bool
Public ReadOnly Property AllowCancellation As Boolean

Property Value

Remarks

This value is composed of initial AllowCancellation value and AllowCancellation values of all currently added scopes. The value composition logic takes into acount disposed scopes too - if any of added scopes were disposed while its AllowCancellation was false, this property will stay false regardless of all other scopes' AllowCancellation values.

Applies to