Task::FromException Method

.NET Framework (current version)
 

Namespace:   System.Threading.Tasks
Assembly:  mscorlib (in mscorlib.dll)

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticFromException(Exception^)

Creates a Task that has completed with a specified exception.

System_CAPS_pubmethodSystem_CAPS_staticFromException<TResult>(Exception^)

Creates a Task<TResult> that's completed with a specified exception.

Return to top
Show: