Compartir a través de


DataAsyncCommand.Cancel Method (Boolean)

Cancels the asynchronous call, returning either immediately (asynchronously) or after waiting for the call to be fully cancelled (synchronously).

Namespace:  Microsoft.VisualStudio.Data
Assembly:  Microsoft.VisualStudio.Data (in Microsoft.VisualStudio.Data.dll)

Syntax

'Declaración
Public MustOverride Sub Cancel ( _
    waitForEnd As Boolean _
)
public abstract void Cancel(
    bool waitForEnd
)
public:
virtual void Cancel(
    bool waitForEnd
) abstract
abstract Cancel : 
        waitForEnd:bool -> unit 
public abstract function Cancel(
    waitForEnd : boolean
)

Parameters

  • waitForEnd
    Type: System.Boolean
    Boolean flag indicating whether or not to wait for the call to be fully cancelled before returning.

Remarks

The waitForEnd parameter indicates whether the call to the Cancel method should be asynchronous (waitForEnd = false), or synchronous (waitForEnd = true).

.NET Framework Security

See Also

Reference

DataAsyncCommand Class

Cancel Overload

Microsoft.VisualStudio.Data Namespace