Compartir a través de


StatementTimeout Propiedad

Gets or sets the number of seconds a statement is given to run before failing with a time-out error.

Espacio de nombres:  Microsoft.SqlServer.Management.Common
Ensamblado:  Microsoft.SqlServer.ConnectionInfo (en Microsoft.SqlServer.ConnectionInfo.dll)

Sintaxis

'Declaración
Public Property StatementTimeout As Integer
    Get
    Set
'Uso
Dim instance As ServerConnection
Dim value As Integer

value = instance.StatementTimeout

instance.StatementTimeout = value
public int StatementTimeout { get; set; }
public:
property int StatementTimeout {
    int get ();
    void set (int value);
}
member StatementTimeout : int with get, set
function get StatementTimeout () : int
function set StatementTimeout (value : int)

Valor de la propiedad

Tipo: System. . :: . .Int32
An Int32 value that specifies the number of seconds a statement is given to run before failing with a time-out error.