MobileServiceSyncTableExtensions.PullAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| PullAsync(IMobileServiceSyncTable, String, String) |
Pulls all items that match the given query from the associated remote table. Supports incremental sync. |
| PullAsync(IMobileServiceSyncTable, String, String, IDictionary<String,String>, CancellationToken) |
Pulls all items that match the given query from the associated remote table. Supports incremental sync. |
| PullAsync<T,U>(IMobileServiceSyncTable<T>, String, IMobileServiceTableQuery<U>) |
Pulls all items that match the given query from the associated remote table. |
| PullAsync<T,U>(IMobileServiceSyncTable<T>, String, IMobileServiceTableQuery<U>, CancellationToken) |
Pulls all items that match the given query from the associated remote table. |
PullAsync(IMobileServiceSyncTable, String, String)
Pulls all items that match the given query from the associated remote table. Supports incremental sync.
public static System.Threading.Tasks.Task PullAsync(this Microsoft.WindowsAzure.MobileServices.Sync.IMobileServiceSyncTable table, string queryId, string query);
static member PullAsync : Microsoft.WindowsAzure.MobileServices.Sync.IMobileServiceSyncTable * string * string -> System.Threading.Tasks.Task
<Extension()>
Public Function PullAsync (table As IMobileServiceSyncTable, queryId As String, query As String) As Task
Parameters
- table
- IMobileServiceSyncTable
The instance of table to execute pull on.
- queryId
- System.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. Must be 25 characters or less and contain only alphanumeric characters, dash, and underscore.
- query
- System.String
An OData query that determines which items to pull from the remote table.
Returns
A task that completes when pull operation has finished.
Exceptions
Thrown when queryId does not match the regular expression <returns>[a-zA-Z][a-zA-Z0-9_-]{0,24}</returns>.
Applies to
PullAsync(IMobileServiceSyncTable, String, String, IDictionary<String,String>, CancellationToken)
Pulls all items that match the given query from the associated remote table. Supports incremental sync.
public static System.Threading.Tasks.Task PullAsync(this Microsoft.WindowsAzure.MobileServices.Sync.IMobileServiceSyncTable table, string queryId, string query, System.Collections.Generic.IDictionary<string,string> parameters, System.Threading.CancellationToken cancellationToken);
static member PullAsync : Microsoft.WindowsAzure.MobileServices.Sync.IMobileServiceSyncTable * string * string * System.Collections.Generic.IDictionary<string, string> * System.Threading.CancellationToken -> System.Threading.Tasks.Task
<Extension()>
Public Function PullAsync (table As IMobileServiceSyncTable, queryId As String, query As String, parameters As IDictionary(Of String, String), cancellationToken As CancellationToken) As Task
Parameters
- table
- IMobileServiceSyncTable
The instance of table to execute pull on.
- queryId
- System.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. Must be 25 characters or less and contain only alphanumeric characters, dash, and underscore.
- query
- System.String
An OData query that determines which items to pull from the remote table.
- parameters
- System.Collections.Generic.IDictionary<System.String,System.String>
A dictionary of user-defined parameters and values to include in the request URI query string.
- cancellationToken
- System.Threading.CancellationToken
The System.Threading.CancellationToken token to observe
Returns
A task that completes when pull operation has finished.
Exceptions
Thrown when queryId does not match the regular expression <returns>[a-zA-Z][a-zA-Z0-9_-]{0,24}</returns>.
Applies to
PullAsync<T,U>(IMobileServiceSyncTable<T>, String, IMobileServiceTableQuery<U>)
Pulls all items that match the given query from the associated remote table.
public static System.Threading.Tasks.Task PullAsync<T,U>(this Microsoft.WindowsAzure.MobileServices.Sync.IMobileServiceSyncTable<T> table, string queryId, Microsoft.WindowsAzure.MobileServices.IMobileServiceTableQuery<U> query);
static member PullAsync : Microsoft.WindowsAzure.MobileServices.Sync.IMobileServiceSyncTable<'T> * string * Microsoft.WindowsAzure.MobileServices.IMobileServiceTableQuery<'U> -> System.Threading.Tasks.Task
<Extension()>
Public Function PullAsync(Of T, U) (table As IMobileServiceSyncTable(Of T), queryId As String, query As IMobileServiceTableQuery(Of U)) As Task
Type Parameters
- T
- U
Parameters
The instance of table to execute pull on.
- queryId
- System.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. Must be 25 characters or less and contain only alphanumeric characters, dash, and underscore.
- query
- IMobileServiceTableQuery<U>
An OData query that determines which items to pull from the remote table.
Returns
A task that completes when pull operation has finished.
Exceptions
Thrown when queryId does not match the regular expression <returns>[a-zA-Z][a-zA-Z0-9_-]{0,24}</returns>.
Applies to
PullAsync<T,U>(IMobileServiceSyncTable<T>, String, IMobileServiceTableQuery<U>, CancellationToken)
Pulls all items that match the given query from the associated remote table.
public static System.Threading.Tasks.Task PullAsync<T,U>(this Microsoft.WindowsAzure.MobileServices.Sync.IMobileServiceSyncTable<T> table, string queryId, Microsoft.WindowsAzure.MobileServices.IMobileServiceTableQuery<U> query, System.Threading.CancellationToken cancellationToken);
static member PullAsync : Microsoft.WindowsAzure.MobileServices.Sync.IMobileServiceSyncTable<'T> * string * Microsoft.WindowsAzure.MobileServices.IMobileServiceTableQuery<'U> * System.Threading.CancellationToken -> System.Threading.Tasks.Task
<Extension()>
Public Function PullAsync(Of T, U) (table As IMobileServiceSyncTable(Of T), queryId As String, query As IMobileServiceTableQuery(Of U), cancellationToken As CancellationToken) As Task
Type Parameters
- T
- U
Parameters
The instance of table to execute pull on.
- queryId
- System.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. Must be 25 characters or less and contain only alphanumeric characters, dash, and underscore.
- query
- IMobileServiceTableQuery<U>
An OData query that determines which items to pull from the remote table.
- cancellationToken
- System.Threading.CancellationToken
The System.Threading.CancellationToken token to observe
Returns
A task that completes when pull operation has finished.
Exceptions
Thrown when queryId does not match the regular expression <returns>[a-zA-Z][a-zA-Z0-9_-]{0,24}</returns>.