AsyncTaskMethodBuilder<TResult>.SetResult(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.
Marks the task as successfully completed.
public:
void SetResult(TResult result);
public void SetResult (TResult result);
member this.SetResult : 'Result -> unit
Public Sub SetResult (result As TResult)
Parameters
- result
- TResult
The result to use to complete the task.
Exceptions
The task has already completed.
Remarks
This type and its members are intended for use by the compiler.
Applies to
Samarbejd med os på GitHub
Kilden til dette indhold kan findes på GitHub, hvor du også kan oprette og gennemse problemer og pullanmodninger. Du kan få flere oplysninger i vores vejledning til bidragydere.