MobileServiceCollection<T> Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
An asynchronous data source that can wrap the results of a Mobile Services query in a way that's easily consumed by Xaml collection controls like ListView, GridView or ListBox.
public class MobileServiceCollection<T> : Microsoft.WindowsAzure.MobileServices.MobileServiceCollection<T,T>
type MobileServiceCollection<'T> = class
inherit MobileServiceCollection<'T, 'T>
Public Class MobileServiceCollection(Of T)
Inherits MobileServiceCollection(Of T, T)
Type Parameters
- T
Data source and collection element type.
- Inheritance
Remarks
This currently handles asynchronously loading the data, notifying the controls and paging.
Constructors
MobileServiceCollection<T>(IMobileServiceTableQuery<T>, Int32) |
Initializes a new instance of the IncrementalLoadingMobileServiceCollection{T} class. |
Fields
selectorFunction |
A selector function which will be appied to the data when it comes back from the server. (Inherited from MobileServiceCollection<TTable,TCollection>) |
Properties
HasMoreItems |
Gets a value indicating whether there are more items that can be loaded incrementally. (Inherited from MobileServiceCollection<TTable,TCollection>) |
NextLink |
Gets the link to next page of result that is returned in response headers. (Inherited from MobileServiceCollection<TTable,TCollection>) |
PageSize |
The page size specified in the constructor. (Inherited from MobileServiceCollection<TTable,TCollection>) |
TotalCount |
Gets the total count for all the records that would have been returned ignoring any take paging/limit clause specified by client or server. (Inherited from MobileServiceCollection<TTable,TCollection>) |
Methods
LoadMoreItemsAsync(CancellationToken, Int32) |
Load more items asynchronously. Controls which support incremental loading on such as GridView on Windows 8 call this method automatically. In other cases you should call this method yourself. (Inherited from MobileServiceCollection<TTable,TCollection>) |
LoadMoreItemsAsync(Int32) |
Load more items asynchronously. Controls which support incremental loading on such as GridView on Windows 8 call this method automatically. In other cases you should call this method yourself. (Inherited from MobileServiceCollection<TTable,TCollection>) |
OnPropertyChanged(String) |
Invokes the PropertyChanged event for the |
PrepareDataForCollection(IEnumerable<TTable>) |
Transforms the data from the query into data for the collection using the provided selector function. (Inherited from MobileServiceCollection<TTable,TCollection>) |
PrepareDataForCollection(TTable) |
Transforms one item into an item for the collection using the provided selector function. (Inherited from MobileServiceCollection<TTable,TCollection>) |
ProcessQueryAsync(CancellationToken, IMobileServiceTableQuery<TTable>) |
Evaluates the query and adds the result to the collection. (Inherited from MobileServiceCollection<TTable,TCollection>) |
Events
LoadingComplete |
Occurs when finished loading items. Provides LoadingCompleteEventArgs with how many items were loaded. (Inherited from MobileServiceCollection<TTable,TCollection>) |
LoadingItems |
Occurs when LoadMoreItemsAsync(Int32) starting to load items. (Inherited from MobileServiceCollection<TTable,TCollection>) |
Extension Methods
ToCommaSeparatedString<T>(IEnumerable<T>) |
Converts the elements of a collection to strings and concatenates them into a comma-separated list, or returns null for null or empty collections. |
Applies to
Azure SDK for .NET