MobileServiceCollection<T> MobileServiceCollection<T> MobileServiceCollection<T> Class

Definition

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) MobileServiceCollection<T>(IMobileServiceTableQuery<T>, Int32) MobileServiceCollection<T>(IMobileServiceTableQuery<T>, Int32)

Initializes a new instance of the IncrementalLoadingMobileServiceCollection{T} class.

Properties

HasMoreItems HasMoreItems HasMoreItems

Gets a value indicating whether there are more items that can be loaded incrementally.

(Inherited from MobileServiceCollection<TTable,TCollection>)
NextLink NextLink NextLink

Gets the link to next page of result that is returned in response headers.

(Inherited from MobileServiceCollection<TTable,TCollection>)
PageSize PageSize PageSize

The page size specified in the constructor.

(Inherited from MobileServiceCollection<TTable,TCollection>)
TotalCount TotalCount 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>)

Events

LoadingComplete LoadingComplete LoadingComplete

Occurs when finished loading items. Provides LoadingCompleteEventArgs with how many items were loaded.

(Inherited from MobileServiceCollection<TTable,TCollection>)
LoadingItems LoadingItems LoadingItems

Occurs when LoadMoreItemsAsync(Int32) starting to load items.

(Inherited from MobileServiceCollection<TTable,TCollection>)

Methods

LoadMoreItemsAsync(CancellationToken, Int32) LoadMoreItemsAsync(CancellationToken, Int32) 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) LoadMoreItemsAsync(Int32) 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) OnPropertyChanged(String) OnPropertyChanged(String)

Invokes the PropertyChanged event for the propertyName property. Provides a way for subclasses to override the event invocation behavior.

(Inherited from MobileServiceCollection<TTable,TCollection>)
PrepareDataForCollection(IEnumerable<TTable>) PrepareDataForCollection(IEnumerable<TTable>) 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) PrepareDataForCollection(TTable) 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>) ProcessQueryAsync(CancellationToken, IMobileServiceTableQuery<TTable>) ProcessQueryAsync(CancellationToken, IMobileServiceTableQuery<TTable>)

Evaluates the query and adds the result to the collection.

(Inherited from MobileServiceCollection<TTable,TCollection>)

Fields

selectorFunction selectorFunction selectorFunction

A selector function which will be appied to the data when it comes back from the server.

(Inherited from MobileServiceCollection<TTable,TCollection>)

Extension Methods

ToCommaSeparatedString<T>(IEnumerable<T>) ToCommaSeparatedString<T>(IEnumerable<T>) 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