> ## Documentation Index
> Fetch the complete documentation index at: https://klef.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# ISupportsElementEnds

> Ends one element of a collection field.

```csharp
public interface ISupportsElementEnds
```

## Methods

### EndElementAsync()

```csharp
Task EndElementAsync(ConnectionContext context, string externalId, ElementKey element, LocalDate endsOn, string operationId, CancellationToken cancellationToken)
```

Ends an element, and the elements it holds, on a given date.

#### Parameters

**context** `ConnectionContext` *required*

**externalId** `string` *required*

**element** `ElementKey` *required*

**endsOn** `LocalDate` *required*

**operationId** `string` *required*

**cancellationToken** `CancellationToken` *required*

#### Returns

`Task`


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.