Sprache

SqlBatch.Timeout Property

Definition

Gets or sets the wait time (in seconds) before terminating the attempt to execute the batch and generating an error.

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

Property Value

The time in seconds to wait for the batch to execute, which is in contract with the underlying CommandTimeout

Remarks

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

Note to implementers: it's recommended that 0 mean no timeout.

Applies to