Share via


SqlCeReplication.ConnectionRetryTimeout 屬性

此型別具有 SecurityCriticalAttribute 屬性,它會限制為由 .NET Framework for Silverlight 類別程式庫內部使用。使用此型別之任何成員的應用程式碼會擲回 MethodAccessException。

[安全性關鍵]

指定在連接建立失敗之後,SQL Server Compact 用戶端將繼續重試傳送要求的時間長度 (以秒為單位)。

命名空間:  System.Data.SqlServerCe
組件:  System.Data.SqlServerCe (在 System.Data.SqlServerCe.dll 中)

語法

'宣告
Public Property ConnectionRetryTimeout As Short
    Get
    Set
'用途
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)

屬性值

型別:System.Int16
ConnectionRetryTimeout 值,預設值為 120 秒。

請參閱

參考

SqlCeReplication 類別

System.Data.SqlServerCe 命名空間