Class EntityDefinitionIterator

Version: 3.4

An iterator for iterating over IEntityDefinition query results.

Inheritance
object
EntityDefinitionIterator
Namespace: StylelabsStylelabs.MSdkStylelabs.M.Sdk.ModelsQuerying
Assembly: Stylelabs.M.Sdk.dll
Syntax
RequestResponse
public class EntityDefinitionIterator : SkipTakeIteratorBase<IEntityDefinitionQueryResult>, IEntityDefinitionIterator, IQueryIterator<IEntityDefinitionQueryResult>, IIterator

Constructors

EntityDefinitionIterator(IMClient, IEntityDefinitionQueryResult)

Initializes a new instance of the EntityDefinitionIterator class.

Declaration
RequestResponse
public EntityDefinitionIterator(IMClient client, IEntityDefinitionQueryResult result)
Parameters
TypeNameDescription
IMClientclient

The client.

IEntityDefinitionQueryResultresult

The query result.

EntityDefinitionIterator(IMClient, long)

Initializes a new instance of the EntityDefinitionIterator class.

Declaration
RequestResponse
public EntityDefinitionIterator(IMClient client, long pageSize)
Parameters
TypeNameDescription
IMClientclient

The client.

longpageSize

The page size.

Methods

GetResultAsync(long, long)

Gets results.

Declaration
RequestResponse
protected override Task<IEntityDefinitionQueryResult> GetResultAsync(long skip, long take)
Parameters
TypeNameDescription
longskip

How many items to skip.

longtake

How many items to take.

Returns
TypeDescription
Task<>IEntityDefinitionQueryResult

The results.

Overrides
Stylelabs.M.Sdk.Models.Querying.SkipTakeIteratorBase<Stylelabs.M.Sdk.Contracts.Querying.IEntityDefinitionQueryResult>.GetResultAsync(long, long)

Implements

Do you have some feedback for us?

If you have suggestions for improving this article,