MobileServiceCollection<TTable, TCollection> Class

 

Updated: June 25, 2013

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.

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


public class MobileServiceCollection<TTable, TCollection> : ObservableCollection<TCollection>, 
	ITotalCountProvider

Type Parameters

TTable

Data source element type.

TCol

Type of elements ending up in the collection.

NameDescription
System_CAPS_pubmethodMobileServiceCollection<TTable, TCollection>(IMobileServiceTableQuery<TTable>, Func<TTable, TCollection>, Int32)

Initializes a new instance of the T:IncrementalLoadingMobileServiceCollection'2{TTable,TCol} class.

System_CAPS_pubmethodMobileServiceCollection<TTable, TCollection>(IMobileServiceTableQuery<TTable>, Func<IEnumerable<TTable>, IEnumerable<TCollection>>, Int32)

Initializes a new instance of the T:IncrementalLoadingMobileServiceCollection'2{TTable,TCol} class.

System_CAPS_pubmethodMobileServiceCollection<TTable, TCollection>(IMobileServiceTableQuery<TTable>, Int32)

Initializes a new instance of the T:IncrementalLoadingMobileServiceCollection'2{TTable,TCol} class. This constructior should be used in cases where TTable and TCol are the same type.

NameDescription
System_CAPS_pubpropertyCount

(Inherited from Collection<T>.)

System_CAPS_pubpropertyHasMoreItems

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

System_CAPS_pubpropertyItem[Int32]

(Inherited from Collection<T>.)

System_CAPS_protpropertyItems

(Inherited from Collection<T>.)

System_CAPS_pubpropertyPageSize

The page size specified in the constructor.

System_CAPS_pubpropertyTotalCount

Gets the total count for all the records that would have been returned ignoring any take paging/limit clause specified by client or server.

NameDescription
System_CAPS_pubmethodAdd(T)

(Inherited from Collection<T>.)

System_CAPS_protmethodBlockReentrancy()

(Inherited from ObservableCollection<T>.)

System_CAPS_protmethodCheckReentrancy()

(Inherited from ObservableCollection<T>.)

System_CAPS_pubmethodClear()

(Inherited from Collection<T>.)

System_CAPS_protmethodClearItems()

(Inherited from ObservableCollection<T>.)

System_CAPS_pubmethodContains(T)

(Inherited from Collection<T>.)

System_CAPS_pubmethodCopyTo(T[], Int32)

(Inherited from Collection<T>.)

System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetEnumerator()

(Inherited from Collection<T>.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodIndexOf(T)

(Inherited from Collection<T>.)

System_CAPS_pubmethodInsert(Int32, T)

(Inherited from Collection<T>.)

System_CAPS_protmethodInsertItem(Int32, T)

(Inherited from ObservableCollection<T>.)

System_CAPS_pubmethodLoadMoreItemsAsync(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.

System_CAPS_pubmethodLoadMoreItemsAsync(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.

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodMove(Int32, Int32)

(Inherited from ObservableCollection<T>.)

System_CAPS_protmethodMoveItem(Int32, Int32)

(Inherited from ObservableCollection<T>.)

System_CAPS_protmethodOnCollectionChanged(NotifyCollectionChangedEventArgs)

(Inherited from ObservableCollection<T>.)

System_CAPS_protmethodOnPropertyChanged(PropertyChangedEventArgs)

(Inherited from ObservableCollection<T>.)

System_CAPS_protmethodOnPropertyChanged(String)

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

System_CAPS_pubmethodPrepareDataForCollection(TTable)

Transforms one item into an item for the collection using the provided selector function.

System_CAPS_pubmethodPrepareDataForCollection(IEnumerable<TTable>)

Transforms the data from the query into data for the collection using the provided selector function.

System_CAPS_protmethodProcessQueryAsync(CancellationToken, IMobileServiceTableQuery<TTable>)

Evaluates the query and adds the result to the collection.

System_CAPS_pubmethodRemove(T)

(Inherited from Collection<T>.)

System_CAPS_pubmethodRemoveAt(Int32)

(Inherited from Collection<T>.)

System_CAPS_protmethodRemoveItem(Int32)

(Inherited from ObservableCollection<T>.)

System_CAPS_protmethodSetItem(Int32, T)

(Inherited from ObservableCollection<T>.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

NameDescription
System_CAPS_protfieldselectorFunction

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

This currently handles asynchronously loading the data, notifying the controls and paging.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: