Task.FromException Method

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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: