| Visual Basic (Declaration) | |
|---|---|
Public Property CommandTimeout As Integer  | |
| Visual Basic (Usage) |  Copy Code | 
|---|---|
 | |
| C# | |
|---|---|
public int CommandTimeout {get; set;}  | |
The follwoing example set the command timeout to 45 seconds.
             
            
            | C# |  Copy Code | 
|---|---|
de.CommandTimeout=45; | |
| Visual Basic |  Copy Code | 
|---|---|
de.CommandTimeout=45 | |
            The time (in seconds) to wait for the command to execute. The default value is 30
            seconds.