Gets or sets a value that increases the time-out period for queries that would otherwise time out during the default time-out period.
Public Property CommandTimeout As Integer
Type: System.Int32An integer value that increases the time-out period for queries that would otherwise time out during the default time-out period.
This property gets or sets the command time-out used to execute generated commands (IDbCommands). For more information, see CommandTimeout.
When this property is not set, the default value of CommandTimeout is used for query command execution. This default value is set by the storage provider. Note that some providers may throw exceptions if this value is set to a non-zero value.
Supported in: 4.5.1, 4.5, 4, 3.5
.NET Framework Client Profile
Supported in: 4
Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.