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

MobileServiceSyncTableExtensions.PullAsync 方法

定义

重载

PullAsync(IMobileServiceSyncTable, String, String)

从关联的远程表中拉取与给定查询匹配的所有项。 支持增量同步。

PullAsync(IMobileServiceSyncTable, String, String, PullOptions)

从关联的远程表中拉取与给定查询匹配的所有项。 支持增量同步。

PullAsync(IMobileServiceSyncTable, String, String, IDictionary<String,String>, CancellationToken)

从关联的远程表中拉取与给定查询匹配的所有项。 支持增量同步。

PullAsync(IMobileServiceSyncTable, String, String, IDictionary<String,String>, Boolean, CancellationToken)

从关联的远程表中拉取与给定查询匹配的所有项。 支持增量同步。

PullAsync(IMobileServiceSyncTable, String, String, IDictionary<String,String>, CancellationToken, PullOptions)

从关联的远程表中拉取与给定查询匹配的所有项。 支持增量同步。

PullAsync<T,U>(IMobileServiceSyncTable<T>, String, IMobileServiceTableQuery<U>)

从关联的远程表中拉取与给定查询匹配的所有项。

PullAsync<T,U>(IMobileServiceSyncTable<T>, String, IMobileServiceTableQuery<U>, PullOptions)

从关联的远程表中拉取与给定查询匹配的所有项。

PullAsync<T,U>(IMobileServiceSyncTable<T>, String, IMobileServiceTableQuery<U>, CancellationToken)

从关联的远程表中拉取与给定查询匹配的所有项。

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

从关联的远程表中拉取与给定查询匹配的所有项。

PullAsync<T,U>(IMobileServiceSyncTable<T>, String, IMobileServiceTableQuery<U>, CancellationToken, PullOptions)

从关联的远程表中拉取与给定查询匹配的所有项。

PullAsync(IMobileServiceSyncTable, String, String)

从关联的远程表中拉取与给定查询匹配的所有项。 支持增量同步。

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

参数

table
IMobileServiceSyncTable

要执行拉取的表的实例。

queryId
String

唯一标识此查询并用于跟踪其同步状态的字符串。 只要再次使用同一密钥,提供此参数即可启用增量同步。 必须为 25 个字符或更少,并且仅包含字母数字字符、短划线和下划线。

query
String

一个 OData 查询,用于确定要从远程表中提取哪些项。

返回

拉取操作完成后完成的任务。

例外

当 与正则表达式 [a-zA-Z][a-zA-Z0-9_-]{0,24} 不匹配时queryId引发。

适用于

PullAsync(IMobileServiceSyncTable, String, String, PullOptions)

从关联的远程表中拉取与给定查询匹配的所有项。 支持增量同步。

public static System.Threading.Tasks.Task PullAsync (this Microsoft.WindowsAzure.MobileServices.Sync.IMobileServiceSyncTable table, string queryId, string query, Microsoft.WindowsAzure.MobileServices.Sync.PullOptions pullOptions);
static member PullAsync : Microsoft.WindowsAzure.MobileServices.Sync.IMobileServiceSyncTable * string * string * Microsoft.WindowsAzure.MobileServices.Sync.PullOptions -> System.Threading.Tasks.Task
<Extension()>
Public Function PullAsync (table As IMobileServiceSyncTable, queryId As String, query As String, pullOptions As PullOptions) As Task

参数

table
IMobileServiceSyncTable

要执行拉取的表的实例。

queryId
String

唯一标识此查询并用于跟踪其同步状态的字符串。 只要再次使用同一密钥,提供此参数即可启用增量同步。 必须为 255 个字符或更少,并且仅包含字母数字字符、短划线和下划线。

query
String

一个 OData 查询,用于确定要从远程表中提取哪些项。

pullOptions
PullOptions

用于确定如何从远程表拉取数据的 PullOptions

返回

拉取操作完成后完成的任务。

例外

当 与正则表达式 [a-zA-Z][a-zA-Z0-9_-]{1,255} 不匹配时queryId引发。

适用于

PullAsync(IMobileServiceSyncTable, String, String, IDictionary<String,String>, CancellationToken)

从关联的远程表中拉取与给定查询匹配的所有项。 支持增量同步。

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

参数

table
IMobileServiceSyncTable

要执行拉取的表的实例。

queryId
String

唯一标识此查询并用于跟踪其同步状态的字符串。 只要再次使用同一密钥,提供此参数即可启用增量同步。 必须为 25 个字符或更少,并且仅包含字母数字字符、短划线和下划线。

query
String

一个 OData 查询,用于确定要从远程表中提取哪些项。

parameters
IDictionary<String,String>

要在请求 URI 查询字符串中包括的用户定义的参数和值的字典。

cancellationToken
CancellationToken

CancellationToken 观察的标记

返回

拉取操作完成后完成的任务。

例外

当 与正则表达式 [a-zA-Z][a-zA-Z0-9_-]{0,24} 不匹配时queryId引发。

适用于

PullAsync(IMobileServiceSyncTable, String, String, IDictionary<String,String>, Boolean, CancellationToken)

从关联的远程表中拉取与给定查询匹配的所有项。 支持增量同步。

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, bool pushOtherTables, System.Threading.CancellationToken cancellationToken);
static member PullAsync : Microsoft.WindowsAzure.MobileServices.Sync.IMobileServiceSyncTable * string * string * System.Collections.Generic.IDictionary<string, string> * bool * 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), pushOtherTables As Boolean, cancellationToken As CancellationToken) As Task

参数

table
IMobileServiceSyncTable

要从中提取的表。

queryId
String

唯一标识此查询并用于跟踪其同步状态的字符串。 只要再次使用同一密钥,提供此参数即可启用增量同步。 必须为 255 个字符或更少,并且仅包含字母数字字符、短划线和下划线

query
String

一个 OData 查询,用于确定要从远程表中提取哪些项。

parameters
IDictionary<String,String>

要在请求 URI 查询字符串中包括的用户定义的参数和值的字典。

pushOtherTables
Boolean

如果此表是脏,则推送其他表。

cancellationToken
CancellationToken

CancellationToken 观察的标记

返回

拉取操作完成后完成的任务。

例外

当 与正则表达式 [a-zA-Z][a-zA-Z0-9_-]{1,255} 不匹配时queryId引发。

适用于

PullAsync(IMobileServiceSyncTable, String, String, IDictionary<String,String>, CancellationToken, PullOptions)

从关联的远程表中拉取与给定查询匹配的所有项。 支持增量同步。

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, Microsoft.WindowsAzure.MobileServices.Sync.PullOptions pullOptions);
static member PullAsync : Microsoft.WindowsAzure.MobileServices.Sync.IMobileServiceSyncTable * string * string * System.Collections.Generic.IDictionary<string, string> * System.Threading.CancellationToken * Microsoft.WindowsAzure.MobileServices.Sync.PullOptions -> 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, pullOptions As PullOptions) As Task

参数

table
IMobileServiceSyncTable

要执行拉取的表的实例。

queryId
String

唯一标识此查询并用于跟踪其同步状态的字符串。 只要再次使用同一密钥,提供此参数即可启用增量同步。 必须为 255 个字符或更少,并且仅包含字母数字字符、短划线和下划线。

query
String

一个 OData 查询,用于确定要从远程表中提取哪些项。

parameters
IDictionary<String,String>

要在请求 URI 查询字符串中包括的用户定义的参数和值的字典。

cancellationToken
CancellationToken

CancellationToken观察的标记

pullOptions
PullOptions

用于确定如何从远程表拉取数据的 PullOptions

返回

拉取操作完成后完成的任务。

例外

当 与正则表达式 [a-zA-Z][a-zA-Z0-9_-]{1,255} 不匹配时queryId引发。

适用于

PullAsync<T,U>(IMobileServiceSyncTable<T>, String, IMobileServiceTableQuery<U>)

从关联的远程表中拉取与给定查询匹配的所有项。

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

类型参数

T
U

参数

table
IMobileServiceSyncTable<T>

要执行拉取的表的实例。

queryId
String

唯一标识此查询并用于跟踪其同步状态的字符串。 只要再次使用同一密钥,提供此参数即可启用增量同步。 必须为 25 个字符或更少,并且仅包含字母数字字符、短划线和下划线。

query
IMobileServiceTableQuery<U>

一个 OData 查询,用于确定要从远程表中提取哪些项。

返回

拉取操作完成后完成的任务。

例外

当 与正则表达式 [a-zA-Z][a-zA-Z0-9_-]{0,24} 不匹配时queryId引发。

适用于

PullAsync<T,U>(IMobileServiceSyncTable<T>, String, IMobileServiceTableQuery<U>, PullOptions)

从关联的远程表拉取与给定查询匹配的所有项。

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, Microsoft.WindowsAzure.MobileServices.Sync.PullOptions pullOptions);
static member PullAsync : Microsoft.WindowsAzure.MobileServices.Sync.IMobileServiceSyncTable<'T> * string * Microsoft.WindowsAzure.MobileServices.IMobileServiceTableQuery<'U> * Microsoft.WindowsAzure.MobileServices.Sync.PullOptions -> System.Threading.Tasks.Task
<Extension()>
Public Function PullAsync(Of T, U) (table As IMobileServiceSyncTable(Of T), queryId As String, query As IMobileServiceTableQuery(Of U), pullOptions As PullOptions) As Task

类型参数

T
U

参数

table
IMobileServiceSyncTable<T>

要执行拉取的表的实例。

queryId
String

唯一标识此查询并用于跟踪其同步状态的字符串。 只要再次使用同一密钥,提供此参数即可启用增量同步。 必须为 255 个字符或更少,并且仅包含字母数字字符、短划线和下划线

query
IMobileServiceTableQuery<U>

一个 OData 查询,用于确定要从远程表中提取哪些项。

pullOptions
PullOptions

用于确定如何从远程表拉取数据的 PullOptions

返回

拉取操作完成后完成的任务。

例外

当 与正则表达式 [a-zA-Z][a-zA-Z0-9_-]{1,255} 不匹配时queryId引发。

适用于

PullAsync<T,U>(IMobileServiceSyncTable<T>, String, IMobileServiceTableQuery<U>, CancellationToken)

从关联的远程表拉取与给定查询匹配的所有项。

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

类型参数

T
U

参数

table
IMobileServiceSyncTable<T>

要执行拉取的表的实例。

queryId
String

唯一标识此查询并用于跟踪其同步状态的字符串。 每当再次使用同一密钥时,提供此参数即可启用增量同步。 必须为 25 个字符或更少,并且仅包含字母数字字符、短划线和下划线。

query
IMobileServiceTableQuery<U>

一个 OData 查询,用于确定要从远程表拉取哪些项。

cancellationToken
CancellationToken

要观察的 CancellationToken 标记

返回

拉取操作完成后完成的任务。

例外

与正则表达式 [a-zA-Z][a-zA-Z0-9_-]{0,24} 不匹配时queryId引发。

适用于

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

从关联的远程表拉取与给定查询匹配的所有项。

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, bool pushOtherTables, System.Threading.CancellationToken cancellationToken);
static member PullAsync : Microsoft.WindowsAzure.MobileServices.Sync.IMobileServiceSyncTable<'T> * string * Microsoft.WindowsAzure.MobileServices.IMobileServiceTableQuery<'U> * bool * 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), pushOtherTables As Boolean, cancellationToken As CancellationToken) As Task

类型参数

T
U

参数

table
IMobileServiceSyncTable<T>

从中拉取的表。

queryId
String

唯一标识此查询并用于跟踪其同步状态的字符串。 每当再次使用同一密钥时,提供此参数即可启用增量同步。 必须为 255 个字符或更少,并且仅包含字母数字字符、短划线和下划线

query
IMobileServiceTableQuery<U>

一个 OData 查询,用于确定要从远程表拉取哪些项。

pushOtherTables
Boolean

如果此表是脏,则推送其他表

cancellationToken
CancellationToken

要观察的 CancellationToken 标记

返回

拉取操作完成后完成的任务。

例外

与正则表达式 [a-zA-Z][a-zA-Z0-9_-]{1,255} 不匹配时queryId引发。

适用于

PullAsync<T,U>(IMobileServiceSyncTable<T>, String, IMobileServiceTableQuery<U>, CancellationToken, PullOptions)

从关联的远程表拉取与给定查询匹配的所有项。

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, Microsoft.WindowsAzure.MobileServices.Sync.PullOptions pullOptions);
static member PullAsync : Microsoft.WindowsAzure.MobileServices.Sync.IMobileServiceSyncTable<'T> * string * Microsoft.WindowsAzure.MobileServices.IMobileServiceTableQuery<'U> * System.Threading.CancellationToken * Microsoft.WindowsAzure.MobileServices.Sync.PullOptions -> 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, pullOptions As PullOptions) As Task

类型参数

T
U

参数

table
IMobileServiceSyncTable<T>

要执行拉取的表的实例。

queryId
String

唯一标识此查询并用于跟踪其同步状态的字符串。 每当再次使用同一密钥时,提供此参数即可启用增量同步。 必须为 255 个字符或更少,并且仅包含字母数字字符、短划线和下划线

query
IMobileServiceTableQuery<U>

一个 OData 查询,用于确定要从远程表拉取哪些项。

cancellationToken
CancellationToken

要观察的 CancellationToken 标记

pullOptions
PullOptions

确定如何从远程表拉取数据的 PullOptions

返回

拉取操作完成后完成的任务。

例外

与正则表达式 [a-zA-Z][a-zA-Z0-9_-]{1,255} 不匹配时queryId引发。

适用于