SqlCeRemoteDataAccess.ConnectionRetryTimeout Property
Specifies how long (in seconds) the SQL Server Compact 3.5 SP1 client will continue to retry sending failed requests.
Namespace: System.Data.SqlServerCe
Assembly: System.Data.SqlServerCe (in system.data.sqlserverce.dll)
Syntax
'Declaration
Public Property ConnectionRetryTimeout As Short
public short ConnectionRetryTimeout { get; set; }
public:
property short ConnectionRetryTimeout {
short get ();
void set (short value);
}
/** @property */
public short get_ConnectionRetryTimeout ()
/** @property */
public void set_ConnectionRetryTimeout (short value)
public function get ConnectionRetryTimeout () : short
public function set ConnectionRetryTimeout (value : short)
Property Value
The ConnectionRetryTimeout value, with a default value of 120 seconds.
Remarks
The ConnectionRetryTimeout property allows you to specify an amount of time that the SQL Server Compact 3.5 SP1 client will attempt to recover from a failed connection. This property only applies to situations when the initial connection has succeeded and then the connection has been destroyed. If recovery occurs during the specified duration, the operation (Push, Pull, or SubmitSql) continues. If the ConnectionRetryTimeout occurs before the connection is reestablished, the operation fails.
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 timeout allowed is 900 seconds. For recommendations on setting this timeout value, see "Optimizing Connectivity" in the SQL Server Compact 3.5 SP1 Books Online.
Thread Safety
Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Development Platforms
Windows Vista, Windows Mobile 5.0, Windows XP Professional with Service Pack 2 (SP2), Windows Server 2003, Windows Mobile 2003 for Pocket PC, Windows CE 5.0
Version Information
.NET Framework and NET Compact Framework
Supported in 3.5
.NET Framework
Supported in 3.0
.NET Compact Framework and .Net Framework
Supported in 2.0
See Also
Reference
SqlCeRemoteDataAccess Class
SqlCeRemoteDataAccess Members
System.Data.SqlServerCe Namespace