SqlConnectionStringBuilder.CommandTimeout Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The default wait time (in seconds) before terminating the attempt to execute a command and generating an error. The default is 30 seconds.
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 is 30 seconds.
Exceptions
The value set is less than 0.
Remarks
This property corresponds to the "Command Timeout" key within the SqlConnection connection string.
Valid values are greater than or equal to 0 and less than or equal to 2147483647.