ConnectionContext.CommandTimeout Property

Gets or sets the time (in seconds) that elapses before the command that executes the batch statement times out.

Namespace:  Microsoft.Data.Schema.UnitTesting
Assembly:  Microsoft.Data.Schema.UnitTesting (in Microsoft.Data.Schema.UnitTesting.dll)

Syntax

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

Property Value

Type: System.Int32
The number of seconds before timeout. The default is 30.

Remarks

Use this property to configure the DbCommand that is used to execute the Transact-SQL statement or statements.

.NET Framework Security

See Also

Reference

ConnectionContext Class

Microsoft.Data.Schema.UnitTesting Namespace

DbCommand