共用方式為


ICustomStorageInterface<TState,TDelta>.ApplyUpdatesToStorage 方法

定義

將指定的差異陣列套用至儲存體,如果儲存體中的版本符合預期的版本,則會傳回 true。 否則,不會執行任何動作並傳回 false。 如果成功,儲存體版本必須增加差異數目。

public System.Threading.Tasks.Task<bool> ApplyUpdatesToStorage (System.Collections.Generic.IReadOnlyList<TDelta> updates, int expectedversion);
public System.Threading.Tasks.Task<bool> ApplyUpdatesToStorage (System.Collections.Generic.IReadOnlyList<TDelta> updates, int expectedVersion);
abstract member ApplyUpdatesToStorage : System.Collections.Generic.IReadOnlyList<'Delta> * int -> System.Threading.Tasks.Task<bool>
abstract member ApplyUpdatesToStorage : System.Collections.Generic.IReadOnlyList<'Delta> * int -> System.Threading.Tasks.Task<bool>
Public Function ApplyUpdatesToStorage (updates As IReadOnlyList(Of TDelta), expectedversion As Integer) As Task(Of Boolean)
Public Function ApplyUpdatesToStorage (updates As IReadOnlyList(Of TDelta), expectedVersion As Integer) As Task(Of Boolean)

參數

updates
IReadOnlyList<TDelta>
expectedversionexpectedVersion
Int32

傳回

如果已套用差異,則為 true,否則為 false

適用於