Gets or sets the wait time before terminating the attempt to execute a command and generating an error.
1 2 3 4 |
[Visual Basic] <strong>Public Property CommandTimeout</strong> <strong>As </strong><a href="ms-help://MS.NETFrameworkSDK/cpref/html/frlrfSystemInt32ClassTopic.htm">Integer</a> |
1 2 3 4 |
[C#] <strong>public </strong><a href="ms-help://MS.NETFrameworkSDK/cpref/html/frlrfSystemInt32ClassTopic.htm">int</a><strong> CommandTimeout {get; set;}</strong> |
Remarks
The time (in seconds) to wait for the command to execute. The default value is 30 seconds.
Example
The follwoing example set the command timeout to 45 seconds.
[C#]
de.CommandTimeout=45; |
[Visual Basic]
de.CommandTimeout=45 |