Cancel Method

IDbCommand.Cancel Method

Attempts to cancels the execution of an IDbCommand.

[Visual Basic]
Sub Cancel()
void Cancel();
void Cancel();
function Cancel();


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.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework

See Also

IDbCommand Interface | IDbCommand Members | System.Data Namespace

© 2015 Microsoft