共用方式為


TransactionalState<TState>.PerformRead<TResult> 方法

定義

讀取目前的狀態。

public System.Threading.Tasks.Task<TResult> PerformRead<TResult> (Func<TState,TResult> operation);
abstract member PerformRead : Func<'State, 'Result (requires 'State : null and 'State : (new : unit -> 'State))> -> System.Threading.Tasks.Task<'Result>
override this.PerformRead : Func<'State, 'Result (requires 'State : null and 'State : (new : unit -> 'State))> -> System.Threading.Tasks.Task<'Result>
Public Function PerformRead(Of TResult) (operation As Func(Of TState, TResult)) As Task(Of TResult)

類型參數

TResult

參數

operation
Func<TState,TResult>

傳回

Task<TResult>

實作

適用於