'Declaration
<ExtensionAttribute()> Public Shared Function LoadAsync(Of T As Class)( _ ByVal collectionView As ICollectionView(Of T), _ Optional ByVal fromIndex As Nullable(Of Integer), _ Optional ByVal toIndex As Nullable(Of Integer), _ Optional ByVal cancellationToken As CancellationToken _ ) As Task
'Usage
Dim collectionView As ICollectionView(Of T) Dim fromIndex As Nullable(Of Integer) Dim toIndex As Nullable(Of Integer) Dim cancellationToken As CancellationToken Dim value As Task value = ICollectionViewEx.LoadAsync(Of T)(collectionView, fromIndex, toIndex, cancellationToken)
[Extension()] public static Task LoadAsync<T>( ICollectionView<T> collectionView, Nullable<int> fromIndex, Nullable<int> toIndex, CancellationToken cancellationToken ) where T: class
Parameters
- collectionView
- The collection view.
- fromIndex
- The starting index, if not specified this will be 0.
- toIndex
- The starting index, if not specified this will be Count.
- cancellationToken
- The cancellation token.
Type Parameters
- T