다음을 통해 공유


StatementTimeout 속성

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.dll의 Microsoft.SqlServer.ConnectionInfo

구문

‘선언
Public Property StatementTimeout As Integer
    Get
    Set
‘사용 방법
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)

속성 값

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

예제

속성 설정