System.Data.Common.DbCommand.Cancel Method

Attempts to cancels the execution of a System.Data.Common.DbCommand.

Syntax

public abstract void Cancel ()

Remarks

If there is nothing to cancel, nothing happens. However, if there is a command in process, and the attempt to cancel fails, no exception is generated.

Requirements

Namespace: System.Data.Common
Assembly: System.Data (in System.Data.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0