Interface IScroller

Current version: 3.4

Allows scrolling (similar to iterating) over a Query.

Namespace: StylelabsStylelabs.MSdkStylelabs.M.Sdk.ContractsQuerying
Assembly: Stylelabs.M.Sdk.dll
Syntax
RequestResponse
public interface IScroller

Properties

Current

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

Declaration
RequestResponse
IScrollResult Current { get; }
Property Value
TypeDescription
IScrollResult

Methods

CanMoveNext()

Checks if the iterator can move further through the results.

Declaration
RequestResponse
bool CanMoveNext()
Returns
TypeDescription
bool

true if there more results.

MoveNextAsync()

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

Declaration
RequestResponse
Task<bool> MoveNextAsync()
Returns
TypeDescription
Task<>bool

true 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
RequestResponse
void Reset()

Do you have some feedback for us?

If you have suggestions for improving this article,