IDbConnection.ConnectionTimeout Propriedade
Definição
Obtém o tempo de espera (em segundos) durante a tentativa de estabelecimento da conexão antes que a tentativa seja terminada e um erro seja gerado.Gets the time to wait (in seconds) while trying to establish a connection before terminating the attempt and generating an error.
public:
property int ConnectionTimeout { int get(); };
public int ConnectionTimeout { get; }
member this.ConnectionTimeout : int
Public ReadOnly Property ConnectionTimeout As Integer
Valor da propriedade
O tempo (em segundos) de espera para abrir uma conexão.The time (in seconds) to wait for a connection to open. O valor padrão é 15 segundos.The default value is 15 seconds.
Comentários
Um valor de 0 indica que não há limite para o tempo de espera, em vez de nenhum tempo de espera, e deve ser evitado em um ConnectionString porque isso faria com que a tentativa de conexão esperasse indefinidamente.A value of 0 indicates no limit to the wait time, rather than no wait time, and should be avoided in a ConnectionString because it would cause the connection attempt to wait indefinitely.