你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

IMobileServiceSyncContext.InitializeAsync 方法

定义

重载

InitializeAsync(IMobileServiceLocalStore, IMobileServiceSyncHandler)

初始化同步上下文。

InitializeAsync(IMobileServiceLocalStore, IMobileServiceSyncHandler, StoreTrackingOptions)

初始化同步上下文。

InitializeAsync(IMobileServiceLocalStore, IMobileServiceSyncHandler)

初始化同步上下文。

public System.Threading.Tasks.Task InitializeAsync (Microsoft.WindowsAzure.MobileServices.Sync.IMobileServiceLocalStore store, Microsoft.WindowsAzure.MobileServices.Sync.IMobileServiceSyncHandler handler);
abstract member InitializeAsync : Microsoft.WindowsAzure.MobileServices.Sync.IMobileServiceLocalStore * Microsoft.WindowsAzure.MobileServices.Sync.IMobileServiceSyncHandler -> System.Threading.Tasks.Task
Public Function InitializeAsync (store As IMobileServiceLocalStore, handler As IMobileServiceSyncHandler) As Task

参数

返回

同步上下文初始化时完成的任务。

适用于

InitializeAsync(IMobileServiceLocalStore, IMobileServiceSyncHandler, StoreTrackingOptions)

初始化同步上下文。

public System.Threading.Tasks.Task InitializeAsync (Microsoft.WindowsAzure.MobileServices.Sync.IMobileServiceLocalStore store, Microsoft.WindowsAzure.MobileServices.Sync.IMobileServiceSyncHandler handler, Microsoft.WindowsAzure.MobileServices.Sync.StoreTrackingOptions trackingOptions);
abstract member InitializeAsync : Microsoft.WindowsAzure.MobileServices.Sync.IMobileServiceLocalStore * Microsoft.WindowsAzure.MobileServices.Sync.IMobileServiceSyncHandler * Microsoft.WindowsAzure.MobileServices.Sync.StoreTrackingOptions -> System.Threading.Tasks.Task
Public Function InitializeAsync (store As IMobileServiceLocalStore, handler As IMobileServiceSyncHandler, trackingOptions As StoreTrackingOptions) As Task

参数

trackingOptions
StoreTrackingOptions

一个 StoreTrackingOptions 值,该值指示将如何跟踪存储操作,从而影响引发的存储事件。

返回

同步上下文初始化时完成的任务。

适用于