dotnetCHARTING Send comments on this topic.
CommandTimeout Property
See Also  Example
dotnetCHARTING Namespace > DataEngine Class : CommandTimeout Property


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

Syntax

Visual Basic (Declaration) 
Public Property CommandTimeout As Integer
Visual Basic (Usage)Copy Code
Dim instance As DataEngine
Dim value As Integer
 
instance.CommandTimeout = value
 
value = instance.CommandTimeout
C# 
public int CommandTimeout {get; set;}

Example

The follwoing example set the command timeout to 45 seconds.
C#Copy Code
de.CommandTimeout=45;
    
Visual BasicCopy Code
de.CommandTimeout=45

Remarks

The time (in seconds) to wait for the command to execute. The default value is 30 seconds.

See Also

© 2010 All Rights Reserved.