---
title: "Class FluentEntitiesIterator"
slug: "fluent-sdk--stylelabs.m.sdk.fluent.wrappers.fluententitiesiterator"
abstract: ""
---
# Class FluentEntitiesIterator

Provides access to the entity iterator in a fluent way.

## Inheritance

object

FluentEntitiesIterator

## Namespace: StylelabsStylelabs.MSdkFluentWrappers

## Assembly: Stylelabs.M.Sdk.Fluent.dll

## Syntax

```csharp
public class FluentEntitiesIterator
```

## Constructors

### FluentEntitiesIterator(IEntityIterator, IEntitiesClient, IEntityLoadConfiguration)

Initializes a new instance of the [FluentEntitiesIterator](https://doc.sitecore.com/ch/en/developers/api-reference/fluent-sdk--stylelabs.m.sdk.fluent.wrappers.fluententitiesiterator.html) class.

#### Declaration

```csharp
public FluentEntitiesIterator(IEntityIterator iterator, IEntitiesClient entitiesClient, IEntityLoadConfiguration entityLoadConfiguration)
```

#### Parameters

| Type | Name | Description |
| --- | --- | --- |
| [IEntityIterator](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.sdk.contracts.querying.ientityiterator.html) | iterator | The [IEntityIterator](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.sdk.contracts.querying.ientityiterator.html) instance. |
| [IEntitiesClient](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.sdk.clients.ientitiesclient.html) | entitiesClient | The [IEntitiesClient](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.sdk.clients.ientitiesclient.html) instance. |
| [IEntityLoadConfiguration](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.framework.essentials.loadconfigurations.ientityloadconfiguration.html) | entityLoadConfiguration | The [IEntityLoadConfiguration](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.framework.essentials.loadconfigurations.ientityloadconfiguration.html). |

## Properties

### Items

Gets the [FluentEntity](https://doc.sitecore.com/ch/en/developers/api-reference/fluent-sdk--stylelabs.m.sdk.fluent.models.fluententity.html) objects for the current iteration.

#### Declaration

```csharp
public List<FluentEntity> Items { get; }
```

#### Property Value

| Type | Description |
| --- | --- |
| List<>[FluentEntity](https://doc.sitecore.com/ch/en/developers/api-reference/fluent-sdk--stylelabs.m.sdk.fluent.models.fluententity.html) |  |

### Object

Gets the [IEntityIterator](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.sdk.contracts.querying.ientityiterator.html).

#### Declaration

```csharp
public IEntityIterator Object { get; }
```

#### Property Value

| Type | Description |
| --- | --- |
| [IEntityIterator](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.sdk.contracts.querying.ientityiterator.html) |  |

## Methods

### CanMoveNext()

#### Declaration

```csharp
public bool CanMoveNext()
```

#### Returns

| Type | Description |
| --- | --- |
| bool |  |

### CanMovePrevious()

#### Declaration

```csharp
public bool CanMovePrevious()
```

#### Returns

| Type | Description |
| --- | --- |
| bool |  |

### IterateAll(CancellationToken)

Iterates to the end and collects all [IEntity](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.sdk.contracts.base.ientity.html) results as [FluentEntity](https://doc.sitecore.com/ch/en/developers/api-reference/fluent-sdk--stylelabs.m.sdk.fluent.models.fluententity.html).

#### Declaration

```csharp
public FluentEntitiesIterator IterateAll(CancellationToken cancellationToken = null)
```

#### Parameters

| Type | Name | Description |
| --- | --- | --- |
| CancellationToken | cancellationToken | The cancellation token. |

#### Returns

| Type | Description |
| --- | --- |
| [FluentEntitiesIterator](https://doc.sitecore.com/ch/en/developers/api-reference/fluent-sdk--stylelabs.m.sdk.fluent.wrappers.fluententitiesiterator.html) | A [FluentEntitiesIterator](https://doc.sitecore.com/ch/en/developers/api-reference/fluent-sdk--stylelabs.m.sdk.fluent.wrappers.fluententitiesiterator.html). |

### MoveNextAsync()

#### Declaration

```csharp
public Task<bool> MoveNextAsync()
```

#### Returns

| Type | Description |
| --- | --- |
| Task<>bool |  |

### MovePreviousAsync()

#### Declaration

```csharp
public Task<bool> MovePreviousAsync()
```

#### Returns

| Type | Description |
| --- | --- |
| Task<>bool |  |
