TransactionalState<TState>.PerformUpdate<TResult> 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.
Performs an update operation and returns the result.
public System.Threading.Tasks.Task<TResult> PerformUpdate<TResult> (Func<TState,TResult> updateAction);
abstract member PerformUpdate : Func<'State, 'Result (requires 'State : null and 'State : (new : unit -> 'State))> -> System.Threading.Tasks.Task<'Result>
override this.PerformUpdate : Func<'State, 'Result (requires 'State : null and 'State : (new : unit -> 'State))> -> System.Threading.Tasks.Task<'Result>
Public Function PerformUpdate(Of TResult) (updateAction As Func(Of TState, TResult)) As Task(Of TResult)
Type Parameters
- TResult
The type of the return value
Parameters
- updateAction
- Func<TState,TResult>
Returns
Task<TResult>