Visual Basic Reference

CommandTimeout Property

See Also    Example    Applies To

Returns or sets the duration, in seconds, that the provider waits for a command to return from the server.

Syntax

object.CommandTimeout [=number]

Parameters

The CommandTimeout property syntax has these parts:

Part Description
object An object expression that evaluates to an item in the Applies To list.
number Integer. A numeric expression that specifies the number of seconds to wait when establishing a connection. The default is 30 seconds.

Remarks

Once this period of time has elapsed without completing the command, the provider raises an exception to the calling application and cancels the command.

This property corresponds to the ADO Command and Connection CommandTimeout****property.