Click or drag to resize
AsyncTaskMethodBuilderSetException Method
This API is preliminary and subject to change.
Completes the Task in the Faulted state with the specified exception.

Namespace: System.Runtime.CompilerServices
Assembly: Rackspace.Threading (in Rackspace.Threading.dll) Version: 2.1.0-beta1
Syntax
public void SetException(
	Exception exception
)

Parameters

exception
Type: SystemException
The Exception to use to fault the task.
Exceptions
ExceptionCondition
ArgumentNullException If exception is .
InvalidOperationExceptionThe builder is not initialized.
InvalidOperationExceptionThe task has already completed.
Version Information

.NET Framework

Supported in: 3.5

Threading Library

Supported in: 2.1
See Also