OracleCommand.CommandTimeout Property


Gets or sets the wait time (in seconds) before terminating the attempt to execute a command and generating an error.

 virtual property int CommandTimeout { int get(); void set(int value); };
public override int CommandTimeout { get; set; }
member this.CommandTimeout : int with get, set
Public Overrides Property CommandTimeout As Integer

Property Value

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



An ArgumentException is generated if the assigned CommandTimeout property value is less than 0.

Applies to

See also