ConnectionOptions.DbCommandTimeout Property

Specifies the wait time before terminating the attempt to execute a query and generating an error.

Namespace: DevExpress.DataAccess.Sql

Assembly: DevExpress.DataAccess.v20.2.dll

Declaration

[DefaultValue(null)]
public int? DbCommandTimeout { get; set; }
<DefaultValue(Nothing)>
Public Property DbCommandTimeout As Integer?

Property Value

Type Default Description
Nullable<Int32>

null

A nullable integer value, specifying the time in seconds to wait for the query to execute. The null value (Nothing in Visual Basic) indicates the use of the provider's default setting. A zero value indicates unlimited timeout.

Property Paths

You can access this nested property as listed below:

Library Object Type Path to DbCommandTimeout
Cross-Platform Class Library SqlDataSource
.ConnectionOptions.DbCommandTimeout
Dashboard DashboardSqlDataSource
.ConnectionOptions.DbCommandTimeout

Remarks

When a query timeout expires, the query execution stops and an exception is thrown.

Implements

DevExpress.DataAccess.Native.Sql.ConnectionProviders.IConnectionOptions.DbCommandTimeout
See Also