Redigera

Dela via


DataContext.CommandTimeout Property

Definition

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

public:
 property int CommandTimeout { int get(); void set(int value); };
public int CommandTimeout { get; set; }
member this.CommandTimeout : int with get, set
Public Property CommandTimeout As Integer

Property Value

An integer value that increases the time-out period (in seconds) for queries that would otherwise time out during the default time-out period.

Remarks

This property gets or sets the command time-out (in seconds) 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.

Applies to