An interface for objects with operations that can be cancelled.

Namespace:  RedGate.SQL.Shared
Assembly:  RedGate.SQL.Shared (in RedGate.SQL.Shared.dll)

Syntax

Visual Basic (Declaration)
Public Interface ICancellable
C#
public interface ICancellable
Visual C++
public interface class ICancellable

Remarks

SQL Compare and SQL Data Compare have operations which can take a long time and may need to be cancelled. Examples include executing SQL scripts, registering databases in SQL Compare and generating SQL Data Compare scripts.

If a long-running operation is cancelled then an OperationCancelledException is thrown

See ComparisonSession for a code sample.

See Also