/// <summary> /// Attempt to cancel an executing command /// </summary> public void Cancel() { if (hwndStmt == IntPtr.Zero) { throw new InvalidOperationException("Nothing to Cancel."); } DB2CLIWrapper.SQLCancel(hwndStmt); }