Share via


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);
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))

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.

Applies to

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);
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))

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.

Applies to

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);
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))

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.

Applies to