共用方式為


SqlStoreConnection.StatementTimeout 屬性

Gets or sets the number of seconds a statement is given to run before failing with a time-out error. 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。

命名空間:  Microsoft.SqlServer.Management.Sdk.Sfc
組件:  Microsoft.SqlServer.Management.Sdk.Sfc (在 Microsoft.SqlServer.Management.Sdk.Sfc.dll 中)

語法

'宣告
Public Overrides Property StatementTimeout As Integer 
    Get 
    Set
'用途
Dim instance As SqlStoreConnection 
Dim value As Integer 

value = instance.StatementTimeout

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

屬性值

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

請參閱

參考

SqlStoreConnection 類別

Microsoft.SqlServer.Management.Sdk.Sfc 命名空間