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

MobileServiceCollectionExtensions.ToCollectionAsync 方法

定义

重载

ToCollectionAsync<TTable>(IMobileServiceTable<TTable>, Int32)

基于表创建新集合。

ToCollectionAsync<TTable>(IMobileServiceTableQuery<TTable>, Int32)

基于查询创建新集合。

ToCollectionAsync<TTable>(IMobileServiceSyncTable<TTable>, Int32)

基于本地表创建新集合。

ToCollectionAsync<TTable>(IMobileServiceTable<TTable>, Int32)

基于表创建新集合。

public static System.Threading.Tasks.Task<Microsoft.WindowsAzure.MobileServices.MobileServiceCollection<TTable,TTable>> ToCollectionAsync<TTable> (this Microsoft.WindowsAzure.MobileServices.IMobileServiceTable<TTable> table, int pageSize = 0);
static member ToCollectionAsync : Microsoft.WindowsAzure.MobileServices.IMobileServiceTable<'able> * int -> System.Threading.Tasks.Task<Microsoft.WindowsAzure.MobileServices.MobileServiceCollection<'able, 'able>>
<Extension()>
Public Function ToCollectionAsync(Of TTable) (table As IMobileServiceTable(Of TTable), Optional pageSize As Integer = 0) As Task(Of MobileServiceCollection(Of TTable, TTable))

类型参数

TTable

参数

table
IMobileServiceTable<TTable>

要从中创建新集合的表。

pageSize
Int32

可选的页大小。

返回

Task<MobileServiceCollection<TTable,TTable>>

集合。

适用于

ToCollectionAsync<TTable>(IMobileServiceTableQuery<TTable>, Int32)

基于查询创建新集合。

public static System.Threading.Tasks.Task<Microsoft.WindowsAzure.MobileServices.MobileServiceCollection<TTable,TTable>> ToCollectionAsync<TTable> (this Microsoft.WindowsAzure.MobileServices.IMobileServiceTableQuery<TTable> query, int pageSize = 0);
static member ToCollectionAsync : Microsoft.WindowsAzure.MobileServices.IMobileServiceTableQuery<'able> * int -> System.Threading.Tasks.Task<Microsoft.WindowsAzure.MobileServices.MobileServiceCollection<'able, 'able>>
<Extension()>
Public Function ToCollectionAsync(Of TTable) (query As IMobileServiceTableQuery(Of TTable), Optional pageSize As Integer = 0) As Task(Of MobileServiceCollection(Of TTable, TTable))

类型参数

TTable

参数

query
IMobileServiceTableQuery<TTable>

用于对数据进行评估的查询。

pageSize
Int32

可选的页大小。

返回

Task<MobileServiceCollection<TTable,TTable>>

集合。

适用于

ToCollectionAsync<TTable>(IMobileServiceSyncTable<TTable>, Int32)

基于本地表创建新集合。

public static System.Threading.Tasks.Task<Microsoft.WindowsAzure.MobileServices.MobileServiceCollection<TTable,TTable>> ToCollectionAsync<TTable> (this Microsoft.WindowsAzure.MobileServices.Sync.IMobileServiceSyncTable<TTable> table, int pageSize = 0);
static member ToCollectionAsync : Microsoft.WindowsAzure.MobileServices.Sync.IMobileServiceSyncTable<'able> * int -> System.Threading.Tasks.Task<Microsoft.WindowsAzure.MobileServices.MobileServiceCollection<'able, 'able>>
<Extension()>
Public Function ToCollectionAsync(Of TTable) (table As IMobileServiceSyncTable(Of TTable), Optional pageSize As Integer = 0) As Task(Of MobileServiceCollection(Of TTable, TTable))

类型参数

TTable

参数

table
IMobileServiceSyncTable<TTable>

要从中创建新集合的本地表。

pageSize
Int32

可选的页大小。

返回

Task<MobileServiceCollection<TTable,TTable>>

集合。

适用于