MySql.Data.MySqlClient.MySqlConnection.ClearCommandTimeout C# (CSharp) Method

ClearCommandTimeout() private method

Clears query timeout, allowing next SetCommandTimeout() to succeed.
private ClearCommandTimeout ( ) : void
return void
        internal void ClearCommandTimeout()
        {
            if (!hasBeenOpen)
                return;
            commandTimeout = 0;
            if (driver != null)
            {
                driver.ResetTimeout(0);
            }
        }
#endregion

Usage Example

Exemplo n.º 1
0
 public void Dispose()
 {
     if (timeoutSet)
     {
         timeoutSet = false;
         connection.ClearCommandTimeout();
         connection = null;
     }
 }
All Usage Examples Of MySql.Data.MySqlClient.MySqlConnection::ClearCommandTimeout