共用方式為


IGrainStorage.ClearStateAsync 方法

定義

多載

ClearStateAsync(String, GrainReference, IGrainState)

刪除/清除此儲存體實例的資料函式。

ClearStateAsync<T>(String, GrainId, IGrainState<T>)

刪除/清除此儲存體實例的資料函式。

ClearStateAsync(String, GrainReference, IGrainState)

來源:
IGrainStorage.cs

刪除/清除此儲存體實例的資料函式。

public System.Threading.Tasks.Task ClearStateAsync (string grainType, Orleans.Runtime.GrainReference grainReference, Orleans.IGrainState grainState);
abstract member ClearStateAsync : string * Orleans.Runtime.GrainReference * Orleans.IGrainState -> System.Threading.Tasks.Task
Public Function ClearStateAsync (grainType As String, grainReference As GrainReference, grainState As IGrainState) As Task

參數

grainType
String

此粒紋的類型 [完整類別名稱]

grainReference
GrainReference

這個粒紋的粒紋參考物件。

grainState
IGrainState

此粒紋的最後已知狀態資料物件複本。

傳回

指定之粒紋上的 Delete 作業完成承諾。

適用於

ClearStateAsync<T>(String, GrainId, IGrainState<T>)

刪除/清除此儲存體實例的資料函式。

public System.Threading.Tasks.Task ClearStateAsync<T> (string stateName, Orleans.Runtime.GrainId grainId, Orleans.IGrainState<T> grainState);
abstract member ClearStateAsync : string * Orleans.Runtime.GrainId * Orleans.IGrainState<'T> -> System.Threading.Tasks.Task
Public Function ClearStateAsync(Of T) (stateName As String, grainId As GrainId, grainState As IGrainState(Of T)) As Task

類型參數

T

粒紋狀態類型。

參數

stateName
String

此粒紋的狀態名稱

grainId
GrainId

粒紋識別碼

grainState
IGrainState<T>

此粒紋的最後已知狀態資料物件複本。

傳回

指定之粒紋上的 Delete 作業完成承諾。

適用於