[This is preliminary documentation and is subject to change.]

Creates a faulted Task.

Namespace: Simple.Web.HelpersSimple.Web.HelpersSimple::Web::Helpers
Assembly: Simple.Web (in Simple.Web.dll)

Syntax

C#

public static Task Exception(

Exception exception

)

VB

Public Shared Function Exception( _

exception As Exception _

) As Task

C++

public:

static Task^ Exception(

Exception^ exception

)

Parameters

exception

Return Value

Type: System.Threading.Tasks.TaskSystem.Threading.Tasks.TaskSystem.Threading.Tasks::Task
A faulted Task with the Exception property set to the specified value.

See Also

TaskHelperTaskHelperTaskHelper Class
Simple.Web.HelpersSimple.Web.HelpersSimple::Web::Helpers Namespace