MobileServiceCollectionExtensions.ToCollectionAsync
Method
Definition
Overloads
| ToCollectionAsync<TTable>(IMobileServiceTable<TTable>, Int32) |
Create a new collection based on the table. |
| ToCollectionAsync<TTable>(IMobileServiceTableQuery<TTable>, Int32) |
Create a new collection based on the query. |
| ToCollectionAsync<TTable>(IMobileServiceSyncTable<TTable>, Int32) |
Create a new collection based on the local table. |
ToCollectionAsync<TTable>(IMobileServiceTable<TTable>, Int32)
Create a new collection based on the table.
public static System.Threading.Tasks.Task<Microsoft.WindowsAzure.MobileServices.MobileServiceCollection<TTable,TTable>> ToCollectionAsync<TTable> (this Microsoft.WindowsAzure.MobileServices.IMobileServiceTable<TTable> table, int pageSize = 0);
Type Parameters
- TTable
Parameters
- table
- IMobileServiceTable<TTable>
The table from which to create the new collection.
- pageSize
- Int32
Optional page size.
Returns
Task<MobileServiceCollection<TTable,TTable>>
The collection.
ToCollectionAsync<TTable>(IMobileServiceTableQuery<TTable>, Int32)
Create a new collection based on the query.
public static System.Threading.Tasks.Task<Microsoft.WindowsAzure.MobileServices.MobileServiceCollection<TTable,TTable>> ToCollectionAsync<TTable> (this Microsoft.WindowsAzure.MobileServices.IMobileServiceTableQuery<TTable> query, int pageSize = 0);
Type Parameters
- TTable
Parameters
- query
- IMobileServiceTableQuery<TTable>
The query to evaluate for data.
- pageSize
- Int32
Optional page size.
Returns
Task<MobileServiceCollection<TTable,TTable>>
The collection.
ToCollectionAsync<TTable>(IMobileServiceSyncTable<TTable>, Int32)
Create a new collection based on the local table.
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);
Type Parameters
- TTable
Parameters
- table
- IMobileServiceSyncTable<TTable>
The local table from which to create the new collection.
- pageSize
- Int32
Optional page size.
Returns
Task<MobileServiceCollection<TTable,TTable>>
The collection.