IReliableCollection<T>.ClearAsync Method

Definition

Removes all state from the IReliableCollection<T>, including replicated and persisted state.

public System.Threading.Tasks.Task ClearAsync ();
abstract member ClearAsync : unit -> System.Threading.Tasks.Task
Public Function ClearAsync () As Task

Returns

Task

A task that represents the asynchronous clear operation.

Exceptions

Thrown when attempting to perform this operation on a that is not in the Primary role.

Indicates that this operation failed to complete within the given timeout.

Applies to