Condividi tramite


IMobileServiceSyncTable<T>.PullAsync Method

Definition

Overloads

PullAsync<U>(String, IMobileServiceTableQuery<U>, Boolean, CancellationToken)

Pulls all items that match the given query from the associated remote table.

PullAsync<U>(String, IMobileServiceTableQuery<U>, Boolean, CancellationToken, PullOptions)

Pulls all items that match the given query from the associated remote table.

PullAsync<U>(String, IMobileServiceTableQuery<U>, Boolean, CancellationToken)

Pulls all items that match the given query from the associated remote table.

public System.Threading.Tasks.Task PullAsync<U> (string queryId, Microsoft.WindowsAzure.MobileServices.IMobileServiceTableQuery<U> query, bool pushOtherTables, System.Threading.CancellationToken cancellationToken);
abstract member PullAsync : string * Microsoft.WindowsAzure.MobileServices.IMobileServiceTableQuery<'U> * bool * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function PullAsync(Of U) (queryId As String, query As IMobileServiceTableQuery(Of U), pushOtherTables As Boolean, cancellationToken As CancellationToken) As Task

Type Parameters

U

Parameters

queryId
String

A string that uniquely identifies this query and is used to keep track of its sync state. Supplying this parameter enables incremental sync whenever the same key is used again.

query
IMobileServiceTableQuery<U>

An OData query that determines which items to pull from the remote table.

pushOtherTables
Boolean

Push other tables if this table is dirty

cancellationToken
CancellationToken

The CancellationToken token to observe

Returns

A task that completes when pull operation has finished.

Applies to

PullAsync<U>(String, IMobileServiceTableQuery<U>, Boolean, CancellationToken, PullOptions)

Pulls all items that match the given query from the associated remote table.

public System.Threading.Tasks.Task PullAsync<U> (string queryId, Microsoft.WindowsAzure.MobileServices.IMobileServiceTableQuery<U> query, bool pushOtherTables, System.Threading.CancellationToken cancellationToken, Microsoft.WindowsAzure.MobileServices.Sync.PullOptions pullOptions);
abstract member PullAsync : string * Microsoft.WindowsAzure.MobileServices.IMobileServiceTableQuery<'U> * bool * System.Threading.CancellationToken * Microsoft.WindowsAzure.MobileServices.Sync.PullOptions -> System.Threading.Tasks.Task
Public Function PullAsync(Of U) (queryId As String, query As IMobileServiceTableQuery(Of U), pushOtherTables As Boolean, cancellationToken As CancellationToken, pullOptions As PullOptions) As Task

Type Parameters

U

Parameters

queryId
String

A string that uniquely identifies this query and is used to keep track of its sync state. Supplying this parameter enables incremental sync whenever the same key is used again.

query
IMobileServiceTableQuery<U>

An OData query that determines which items to pull from the remote table.

pushOtherTables
Boolean

Push other tables if this table is dirty

cancellationToken
CancellationToken

The CancellationToken token to observe

pullOptions
PullOptions

PullOptions that determine how to pull data from the remote table

Returns

A task that completes when pull operation has finished.

Applies to