Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
DbCommand.CommandTimeout Property
Definition
- Namespace:
- System.Data.Common
- Assembly:
- System.Data.Common.dll
- Assemblies:
- netstandard.dll, System.Data.Common.dll
- Assembly:
- System.Data.dll
- Assembly:
- netstandard.dll
- Source:
- DbCommand.cs
- Source:
- DbCommand.cs
- Source:
- DbCommand.cs
- Source:
- DbCommand.cs
- Source:
- DbCommand.cs
Important
Some information relates to prerelease product that may be substantially modified before itβs released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the wait time (in seconds) before terminating the attempt to execute the command and generating an error.
public:
abstract property int CommandTimeout { int get(); void set(int value); };
public abstract int CommandTimeout { get; set; }
member this.CommandTimeout : int with get, set
Public MustOverride Property CommandTimeout As Integer
Property Value
The time in seconds to wait for the command to execute.
Implements
Remarks
An ArgumentException is generated if the assigned CommandTimeout property value is less than 0.
Note to implementers, it is recommended that 0 mean no timeout.
Applies to
See also
Feedback
Was this page helpful?
