共用方式為


SqlCeReplication.ReceiveTimeout Property

Gets or sets the amount of time, in milliseconds, that the SqlCeReplication object waits for the response to a server request.

Namespace: System.Data.SqlServerCe
Assembly: System.Data.SqlServerCe (in system.data.sqlserverce.dll)

Syntax

'Declaration
Public Property ReceiveTimeout As Integer
'Usage
Dim instance As SqlCeReplication
Dim value As Integer

value = instance.ReceiveTimeout

instance.ReceiveTimeout = value
public int ReceiveTimeout { get; set; }
public:
property int ReceiveTimeout {
    int get ();
    void set (int value);
}
/** @property */
public int get_ReceiveTimeout ()

/** @property */
public void set_ReceiveTimeout (int value)
public function get ReceiveTimeout () : int

public function set ReceiveTimeout (value : int)
Not applicable.

Property Value

An System:Int32 value that represents the time-out, in milliseconds, with a default of 60 seconds.

Remarks

If a response takes longer than the value specified in ReceiveTimeout the request is canceled.

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

Platforms

Windows CE, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows XP Professional x64 Edition, Windows XP SP2

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

Version Information

.NET Framework

Supported in: 3.0

See Also

Reference

SqlCeReplication Class
SqlCeReplication Members
System.Data.SqlServerCe Namespace