System.Data.Common.DbCommand.CommandTimeout Property

Gets or sets the wait time before terminating the attempt to execute a command and generating an error.

Syntax

public abstract int CommandTimeout { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

An ArgumentException is generated if the assigned DbCommand.CommandTimeout property value is less than 0.

Note to implementers, it is recommended that 0 means no timeout.

Requirements

Namespace: System.Data.Common
Assembly: System.Data (in System.Data.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0