Share via


ConnectionRetryTimeout Property

Specifies how long (in seconds) the client will continue to retry sending requests after an established connection has failed.

Namespace:  System.Data.SqlServerCe
Assembly:  System.Data.SqlServerCe (in System.Data.SqlServerCe.dll)

Syntax

'Declaration
Public Property ConnectionRetryTimeout As Short
    Get
    Set
'Usage
Dim instance As SqlCeReplication
Dim value As Short

value = instance.ConnectionRetryTimeout

instance.ConnectionRetryTimeout = value
public short ConnectionRetryTimeout { get; set; }
public:
property short ConnectionRetryTimeout {
    short get ();
    void set (short value);
}
member ConnectionRetryTimeout : int16 with get, set
function get ConnectionRetryTimeout () : short
function set ConnectionRetryTimeout (value : short)

Property Value

Type: System. . :: . .Int16
The ConnectionRetryTimeout value, with a default value of 120 seconds.

Remarks

The ConnectionRetryTimeout property allows you to specify an amount of time that the client will attempt to recover from a failed synchronization. If recovery occurs during the duration, synchronization continues. If the connection retry time-out occurs before the connection is reestablished, synchronization fails.

The ConnectionRetryTimeout value is only used when an established connection has failed. It is not used when first establishing a connection.

Because of other network influences, the ConnectionRetryTimeout setting is only an approximation of the actual time that will lapse before the synchronization is abandoned.

The maximum time-out allowed is 900 seconds. For recommendations on setting this time-out value, see "Optimizing Connectivity" in the  Books Online.

See Also

Reference

SqlCeReplication Class

SqlCeReplication Members

System.Data.SqlServerCe Namespace