1. Stylelabs.M.Sdk.Contracts.Querying

Interface IScroller

Allows scrolling (similar to iterating) over a Query.

Namespace: StylelabsStylelabs.MSdkStylelabs.M.Sdk.ContractsQuerying

Assembly: Stylelabs.M.Sdk.dll

Syntax

public interface IScroller

Properties

Current

Gets the current result. This is initially null. Use MoveNextAsync() first.

Declaration

IScrollResult Current { get; }

Property Value

TypeDescription
IScrollResult

Methods

CanMoveNext()

Checks if the iterator can move further through the results.

Declaration

bool CanMoveNext()

Returns

TypeDescription
booltrue if there more results.

MoveNextAsync()

Advances the scroller to the next batch of the collection. The result will be available in Current.

Declaration

Task<bool> MoveNextAsync()

Returns

TypeDescription
Task<>booltrue if the scroller was successfully advanced to the next batch. false if the scroller has passed the end of the collection.

Reset()

Resets the scroller to start before the first result again.

Declaration

void Reset()
If you have suggestions for improving this article, let us know!