Esporta (0) Stampa
Espandi tutto
EN
Il contenuto non è disponibile nella lingua di destinazione, ma solo in inglese.
Questo argomento non è stato ancora valutato - Valuta questo argomento

MobileServiceCollectionView<T> Class

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.

System.Object
  Microsoft.WindowsAzure.MobileServices.MobileServiceCollectionView<T>

Namespace:  Microsoft.WindowsAzure.MobileServices
Assembly:  Microsoft.WindowsAzure.MobileServices.Managed (in Microsoft.WindowsAzure.MobileServices.Managed.dll)
public sealed class MobileServiceCollectionView<T> : ICollectionView, 
	IObservableVector<Object>, IList<Object>, ICollection<Object>, 
	IEnumerable<Object>, IList, ICollection, IEnumerable, 
	INotifyPropertyChanged, INotifyCollectionChanged, ISupportIncrementalLoading, ITotalCountProvider

Type Parameters

T

Data source element type.

The MobileServiceCollectionView<T> type exposes the following members.

  NameDescription
Public propertyCollectionGroups Gets the collection groups associated with the collection view.
Public propertyCount Gets the number of elements contained in the collection.
Public propertyCurrentItem Gets the current item in the collection view.
Public propertyCurrentPosition Gets the position of the current item within the collection view.
Public propertyHasMoreItems Gets a value indicating whether there are more items that can be loaded incrementally.
Public propertyIsCurrentAfterLast Gets a value indicating whether the current item is after the end of the collection.
Public propertyIsCurrentBeforeFirst Gets a value indicating whether the current item is before the beginning of the collection.
Public propertyIsReadOnly Gets a value indicating whether the collection is read-only.
Public propertyItem Gets or sets the item at the specified index.
Top
  NameDescription
Public methodAdd Adds an item to the collection.
Public methodClear Removes all items from the collection.
Public methodContains Determines whether the collection contains a given element.
Public methodCopyTo Copies the elements of the collection to an array.
Public methodEquals (Inherited from Object.)
Public methodGetEnumerator Get an enumerator for the data source.
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodIndexOf Determines the index of a specific item in the list.
Public methodInsert Insert an item into the collection at the specified index.
Public methodLoadMoreItemsAsync Load more items asynchronously.
Public methodMoveCurrentTo Sets the first instance of the specified item in our currentoy loaded data as the current item in the collection view.
Public methodMoveCurrentToFirst Move the current item to the first item in the collection view.
Public methodMoveCurrentToLast Move the current item to the last item in the collection view.
Public methodMoveCurrentToNext Move the current item to the next item in the collection view.
Public methodMoveCurrentToPosition Sets the specified position as the current item in the collection view.
Public methodMoveCurrentToPrevious Move the current item to the previous item in the collection view.
Public methodRemove Removes the first occurence of the specified item from the list.
Public methodRemoveAt Removes the item at the specified index.
Public methodToString (Inherited from Object.)
Top
  NameDescription
Public eventCollectionChanged Occurs when the collection changes.
Public eventCurrentChanged Occurs after the current item has been changed.
Public eventCurrentChanging Occurs before the current item is changed.
Public eventPropertyChanged Occurs when a property value changes.
Public eventVectorChanged Occurs then the collection changes.
Top
  NameDescription
Explicit interface implemetationPrivate methodICollection<Object>.AddAdds an item to the collection.
Explicit interface implemetationPrivate methodIList.Add Adds an item the collection.
Explicit interface implemetationPrivate methodIList.Clear Removes all the items from the list.
Explicit interface implemetationPrivate methodICollection<Object>.ContainsDetermines whether the collection contains a specific value.
Explicit interface implemetationPrivate methodIList.Contains Determines whether a list contains a specified value.
Explicit interface implemetationPrivate methodICollection<Object>.CopyToCopies the elements of the collection to an array, starting at a particular array index.
Explicit interface implemetationPrivate methodICollection.CopyTo Copy the elements of the collection to an array.
Explicit interface implemetationPrivate propertyICollection.Count Gets the number of items in the collection.
Explicit interface implemetationPrivate methodIEnumerable<Object>.GetEnumeratorReturns an enumerator that iterates through the collection.
Explicit interface implemetationPrivate methodIEnumerable.GetEnumerator Enumerate the items in the collection.
Explicit interface implemetationPrivate methodIList<Object>.IndexOfDetermines the index of a specific item in the collection.
Explicit interface implemetationPrivate methodIList.IndexOf Determines the index of a specified item in the list.
Explicit interface implemetationPrivate methodIList<Object>.InsertInserts an item to the collection at the specified index.
Explicit interface implemetationPrivate methodIList.Insert Insert an item into the collection at the specified index.
Explicit interface implemetationPrivate propertyIList.IsFixedSize Gets a value indicating whether the list has a fixed size.
Explicit interface implemetationPrivate propertyIList.IsReadOnly Gets a value indicating whether the collection is readonly.
Explicit interface implemetationPrivate propertyICollection.IsSynchronized Gets a value indicating whether the collection is synchronized.
Explicit interface implemetationPrivate propertyIList<Object>.ItemGets or sets the item at the specified index.
Explicit interface implemetationPrivate propertyIList.Item Gets or sets an element at a given index.
Explicit interface implemetationPrivate methodICollection<Object>.RemoveRemoves the first occurrence of a specific object from the collection.
Explicit interface implemetationPrivate methodIList.Remove Removes the first occurence of the specified item from the list.
Explicit interface implemetationPrivate methodIList.RemoveAt Removes the item at the specified index.
Explicit interface implemetationPrivate propertyICollection.SyncRoot Gets an object used to synchronize the collection.
Explicit interface implemetationPrivate propertyITotalCountProvider.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.
Top

This currently just handles asynchronously loading the data and notifying the controls, but we'd eventually like to support paging, UI virtualization, and a host of other features.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Il documento è risultato utile?
(1500 caratteri rimanenti)
Grazie per i commenti inviati.

Aggiunte alla community

Mostra:
© 2014 Microsoft. Tutti i diritti riservati.