Class SkipTakeIteratorBase<T>
このページの翻訳はAIによって自動的に行われました。可能な限り正確な翻訳を心掛けていますが、原文と異なる表現や解釈が含まれる場合があります。正確で公式な情報については、必ず英語の原文をご参照ください。
Inheritance
Namespace: Stylelabs.M.Sdk.Models.Querying
Assembly: Stylelabs.M.Sdk.dll
Syntax
Type Parameters
| Name | Description |
|---|---|
| T |
Constructors
SkipTakeIteratorBase(T)
Initializes a new instance of the SkipTakeIteratorBase<T> class and continues iterating from the specified result on.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| T | result |
The result to start iterating from. |
SkipTakeIteratorBase(Int64)
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int64 | pageSize |
Properties
Current
Get the current result during iteration.
Declaration
Property Value
| Type | Description |
|---|---|
| T |
Methods
CanMoveNext()
Checks if the iterator can move further through the results.
Declaration
Returns
| Type | Description |
|---|---|
| System.Boolean |
true if there more results. |
CanMovePrevious()
Checks if the iterator can move backwards through the results.
Declaration
Returns
| Type | Description |
|---|---|
| System.Boolean |
true if there move backwards. |
GetResultAsync(Int64, Int64)
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int64 | skip | |
| System.Int64 | take |
Returns
| Type | Description |
|---|---|
| Task<T> |
MoveNextAsync()
Advances the enumerator to the next page/batch of the collection. The result will be available in Current.
Declaration
Returns
| Type | Description |
|---|---|
| Task<System.Boolean> |
true if the enumerator was successfully advanced to the next page; false if the enumerator has passed the end of the collection. |
MovePreviousAsync()
Moves the enumerator backwards, to the previous page/batch of the collection. The result will be available in Current.
Declaration
Returns
| Type | Description |
|---|---|
| Task<System.Boolean> |
true if the enumerator was successfully advanced to the previous page; false if the enumerator has passed the start of the collection. |
Reset()
Resets the iterator to start before the first result again.
Declaration
Explicit Interface Implementations
IIterator.Current
The current result. This is initially null. Use MoveNextAsync() first.
Declaration
Returns
| Type | Description |
|---|---|
| System.Object |