Duration (Pacific Standard Time):
To (Pacific Standard Time):
Impact:
  • None
User Action:
  • None

DataContext.CommandTimeout Property

 

Gets or sets a value that increases the time-out period for queries that would otherwise time out during the default time-out period.

Namespace:   System.Data.Linq
Assembly:  System.Data.Linq (in System.Data.Linq.dll)

Public Property CommandTimeout As Integer

Property Value

Type: System.Int32

An 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.

.NET Framework
Available since 3.5
Return to top