SetCommandTimeout() private method

Sets query timeout. If timeout has been set prior and not yet cleared ClearCommandTimeout(), it has no effect.
private SetCommandTimeout ( int value ) : bool
value int timeout in seconds
return bool
コード例 #1
0
ファイル: Connection.cs プロジェクト: sleepingwit/jal123
 public CommandTimer(MySqlConnection connection, int timeout)
 {
     _connection = connection;
     if (connection != null)
     {
         _timeoutSet = connection.SetCommandTimeout(timeout);
     }
 }
コード例 #2
0
 public CommandTimer(MySqlConnection connection, int timeout)
 {
     this.connection = connection;
       if (connection != null)
       {
     timeoutSet = connection.SetCommandTimeout(timeout);
       }
 }