CommandTimeout property

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

Syntax
Visual Basic

Public Overrides Property CommandTimeout As Integer
C#

public override int CommandTimeout  { get; set; }
Property value

The default value is 30 seconds.

Remarks

A value of 0 indicates no limit. This should be avoided because it may cause the attempt to execute a command to wait indefinitely.

See also