SqlCeReplication.ReinitializeSubscription 方法
此型別具有 SecurityCriticalAttribute 屬性,它會限制為由 .NET Framework for Silverlight 類別程式庫內部使用。使用此型別之任何成員的應用程式碼會擲回 MethodAccessException。
[安全性關鍵]
標記訂閱以重新初始化。呼叫這個方法之後,應用程式必須呼叫 Synchronize 方法,將發行集的最新快照集下載到裝置。
命名空間: System.Data.SqlServerCe
組件: System.Data.SqlServerCe (在 System.Data.SqlServerCe.dll 中)
語法
'宣告
Public Sub ReinitializeSubscription ( _
uploadBeforeReinitialize As Boolean _
)
'用途
Dim instance As SqlCeReplication
Dim uploadBeforeReinitialize As Boolean
instance.ReinitializeSubscription(uploadBeforeReinitialize)
public void ReinitializeSubscription(
bool uploadBeforeReinitialize
)
public:
void ReinitializeSubscription(
bool uploadBeforeReinitialize
)
member ReinitializeSubscription :
uploadBeforeReinitialize:bool -> unit
public function ReinitializeSubscription(
uploadBeforeReinitialize : boolean
)
參數
- uploadBeforeReinitialize
型別:System.Boolean
如果為 True,則在「訂閱者」套用快照集之前,訂閱資料庫中的變更會上傳到「發行者」。預設值為 False。