Поделиться через


ServerConnection.StatementTimeout Property

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

Пространство имен: Microsoft.SqlServer.Management.Common
Сборка: Microsoft.SqlServer.ConnectionInfo (in microsoft.sqlserver.connectioninfo.dll)

Синтаксис

'Декларация
Public Property StatementTimeout As Integer
public int StatementTimeout { get; set; }
public:
property int StatementTimeout {
    int get ();
    void set (int value);
}
/** @property */
public int get_StatementTimeout ()

/** @property */
public void set_StatementTimeout (int value)
public function get StatementTimeout () : int

public function set StatementTimeout (value : int)

Значение свойства

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

Замечания

Это пространство имен, класс или элемент поддерживаются только платформой Microsoft .NET Framework версии 2.0.

Синхронизация потоков

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Платформы

Платформы разработки

Список поддерживаемых платформ см. в разделе Hardware and Software Requirements for Installing SQL Server 2005.

Целевые платформы

Список поддерживаемых платформ см. в разделе Hardware and Software Requirements for Installing SQL Server 2005.

См. также

Справочник

ServerConnection Class
ServerConnection Members
Microsoft.SqlServer.Management.Common Namespace

Другие ресурсы

Setting Properties