Redigera

Dela via


IStorage.ClearStateAsync Method

Definition

Clears the grain state.

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

Returns

A Task representing the operation.

Remarks

This will usually mean the state record is deleted from backing store, but the specific behavior is defined by the storage provider instance configured for this grain. If the Etag does not match what is present in the backing store, then this operation will fail; Set Etag to null to indicate "always delete".

Applies to