Skip to main content
A newer version of this page is available. .

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.v18.2.dll

Declaration

[DefaultValue(null)]
public int? DbCommandTimeout { get; set; }

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.

See Also