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 연결 시도 무기한 대기 하 게 되므로 합니다.

적용 대상