# IStreamCheckpointerGrain Methods

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.streams.istreamcheckpointergrain/)

## Load(CancellationToken) {#load-system-threading-cancellationtoken-de7cc595}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.streams.istreamcheckpointergrain/methods/load-system-threading-cancellationtoken-de7cc595/)

```csharp
public abstract ValueTask<string> Load(CancellationToken cancellationToken)
```

Loads the checkpoint.

### Parameters

- `cancellationToken` (`CancellationToken`): The cancellation token.

### Returns

The checkpoint.

## Update(string, string, CancellationToken) {#update-string-string-system-threading-cancellationtoken-d0789c9b}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.streams.istreamcheckpointergrain/methods/update-string-string-system-threading-cancellationtoken-d0789c9b/)

```csharp
public abstract ValueTask<string> Update(string offset, string expectedCheckpoint, CancellationToken cancellationToken)
```

Updates the checkpoint if the persisted value matches the expected value.

### Parameters

- `offset` (`string`): The offset.
- `expectedCheckpoint` (`string`): The expected persisted checkpoint.
- `cancellationToken` (`CancellationToken`): The cancellation token.

### Returns

The persisted checkpoint after the update attempt.
