IStorage.ClearStateAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
ClearStateAsync() |
Clears the grain state. |
ClearStateAsync(CancellationToken) |
Clears the grain state. |
ClearStateAsync()
- Source:
- IStorage.cs
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
ClearStateAsync(CancellationToken)
Clears the grain state.
public virtual System.Threading.Tasks.Task ClearStateAsync(System.Threading.CancellationToken cancellationToken);
abstract member ClearStateAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.ClearStateAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overridable Function ClearStateAsync (cancellationToken As CancellationToken) As Task
Parameters
- cancellationToken
- CancellationToken
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".