System.Data.Common.DbCommand.CancelIgnoreFailure C# (CSharp) Method

CancelIgnoreFailure() private method

private CancelIgnoreFailure ( ) : void
return void
        internal void CancelIgnoreFailure()
        {
            // This method is used to route CancellationTokens to the Cancel method.
            // Cancellation is a suggestion, and exceptions should be ignored
            // rather than allowed to be unhandled, as the exceptions cannot be 
            // routed to the caller. These errors will be observed in the regular 
            // method instead.
            try
            {
                Cancel();
            }
            catch (Exception)
            {
            }
        }