Language
Edit

IDataSource.GetCollectionKeyPathRange(String, Int32, Int32) Method

Definition

Get an enumerable collection of key path strings for the specified collection index range.

public System.Collections.Generic.IEnumerable<string> GetCollectionKeyPathRange(string resolvedKeyPath, int rangeStart, int rangeCount);
abstract member GetCollectionKeyPathRange : string * int * int -> seq<string>
Public Function GetCollectionKeyPathRange (resolvedKeyPath As String, rangeStart As Integer, rangeCount As Integer) As IEnumerable(Of String)

Parameters

resolvedKeyPath
String

The key path of the collection itself.

rangeStart
Int32

The index of the first element of the desired range.

rangeCount
Int32

The number of entries to return, (or fewer if end of collection is reached).

Returns

A string enumerable for all the fully resolved key paths in the specified range.

Remarks

This is useful for list virtualization where you only fetch the sub-portion of the list that is currently visible.

Applies to