MySql.Data.MySqlClient.CommandTimer.Dispose C# (CSharp) Method

Dispose() public method

public Dispose ( ) : void
return void
        public void Dispose()
        {
            if (timeoutSet)
            {
                timeoutSet = false;
                connection.ClearCommandTimeout();
                connection = null;
            }
        }
        #endregion

Usage Example

 internal void ClearCommandTimer()
 {
     if (commandTimer != null)
     {
         commandTimer.Dispose();
         commandTimer = null;
     }
 }
All Usage Examples Of MySql.Data.MySqlClient.CommandTimer::Dispose