Show / Hide Table of Contents

Method RefreshAsync

RefreshAsync(CancellationToken)

Refreshes a persistent read session with the current data from the server.

Declaration
public Task RefreshAsync(CancellationToken cancellationToken = default)
Parameters
Type Name Description
CancellationToken cancellationToken

A cancellation token that can be used to cancel the operation.

Returns
Type Description
Task

A Task with no return value.

Remarks

Feature services 12.0 added support for multiple readers and a single writer for a version. In Persistent mode, when a service supports this behavior, calling this method advances the service geodatabase from its previous read state to the present state of the data without being closed. This allows the client to view changes to the version since the last read or the last refresh.

Data from ConnectedTables is refreshed from the previous read state, so dependent queries and redraws are re-evaluated against the present state of the data.

Calling this method when in Transient mode or when a service doesn't support this behavior results in an error.

Applies to

Platforms and versions
TargetVersions
.NET300.1
.NET Windows300.1
.NET Android300.1
.NET iOS300.1
In this article
Provide feedback
Back to top Copyright © 2025 Esri.