MySqlCommand.CommandTimeout Property

MySQL Connector/Net

MySqlCommandCommandTimeout Property
Gets or sets the wait time before terminating the attempt to execute a command and generating an error.

Namespace: MySql.Data.MySqlClient
Assembly: MySql.Data (in MySql.Data.dll) Version: 6.9.9
Syntax
public override int CommandTimeout { get; set; }
Public Overrides Property CommandTimeout As Integer
	Get
	Set
public:
virtual property int CommandTimeout {
	int get () override;
	void set (int value) override;
}
abstract CommandTimeout : int with get, set
override CommandTimeout : int with get, set

Property Value

Type: Int32
The time (in seconds) to wait for the command to execute. The default is 30 seconds.

Implements

IDbCommandCommandTimeout
Remarks
CommandTimeout is dependent on the ability of MySQL to cancel an executing query. Because of this, CommandTimeout is only supported when connected to MySQL version 5.0.0 or higher.
See Also