SALES: 1-800-867-1380

MobileServiceCollectionExtensions.ToCollectionAsync<TTable> Method (IMobileServiceTableQuery<TTable>, Int32)

Updated: June 25, 2013

Create a new collection based on the query.

Namespace:  Microsoft.WindowsAzure.MobileServices
Assembly:  Microsoft.WindowsAzure.Mobile (in Microsoft.WindowsAzure.Mobile.dll)

public static Task<MobileServiceCollection<TTable, TTable>> ToCollectionAsync<TTable>(
	this IMobileServiceTableQuery<TTable> query,
	int pageSize
)

Type Parameters

TTable

The IMobileServiceTable<T>.

Parameters

query
Type: Microsoft.WindowsAzure.MobileServices.IMobileServiceTableQuery<TTable>
The query to evaluate for data.
pageSize
Type: System.Int32
Optional page size.

Return Value

Type: System.Threading.Tasks.Task<MobileServiceCollection<TTable, TTable>>
The collection.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IMobileServiceTableQuery<TTable>. When you use instance method syntax to call this method, omit the first parameter. For more information, see https://msdn.microsoft.com/en-us/library/azure/bb384936.aspx or https://msdn.microsoft.com/en-us/library/azure/bb383977.aspx.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2015 Microsoft