OleDbCommand.CommandTimeout Property

Definition

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

public:
 property int CommandTimeout { int get(); void set(int value); };
[System.Data.DataSysDescription("DbCommand_CommandTimeout")]
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 is 30 seconds.

Implements

Attributes

Remarks

A value of 0 indicates no limit, and should be avoided in a CommandTimeout because an attempt to execute a command will wait indefinitely.

Applies to

See also