IDbCommand.CommandTimeout Property

Definition

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

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

Property Value

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

Remarks

Exceptions

Exception type Condition
ArgumentException The property value assigned is less than 0.

Applies to