Bridge

AsyncTaskMethodBuilder<(Of <(<'TResult>)>)>..::..SetResult Method

Marks the task as successfully completed.

Namespace:  System.Runtime.CompilerServices
Assembly:  Bridge (in Bridge.dll)

Syntax


public void SetResult(
	TResult result
)
Public Sub SetResult ( _
	result As TResult _
)
public:
void SetResult(
	TResult result
)

Parameters

result
Type: TResult
The result to use to complete the task.

Exceptions


ExceptionCondition
System..::..InvalidOperationExceptionThe task has already completed.