IDbConnection.ConnectionTimeout 속성

정의

시도를 종료하고 오류를 생성하기 전에 연결을 설정하는 동안 대기할 시간(초)을 가져옵니다.

public:
 property int ConnectionTimeout { int get(); };
public int ConnectionTimeout { get; }
member this.ConnectionTimeout : int
Public ReadOnly Property ConnectionTimeout As Integer

속성 값

연결이 열릴 때까지 대기하는 시간(초)입니다. 기본값은 15초입니다.

설명

값이 0이면 대기 시간이 아닌 대기 시간에 제한이 없음을 나타내며 연결 시도가 무기한 대기하게 되므로 이를 피 ConnectionString 해야 합니다.

적용 대상