| TaskExtensionsFailFastOnException Method |
Schedules a continuation that ignores any exceptions during execution.
Namespace: Microsoft.IoT.DeviceHelpersAssembly: Microsoft.IoT.DeviceHelpers (in Microsoft.IoT.DeviceHelpers.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax public static Task FailFastOnException(
this Task task
)
<ExtensionAttribute>
Public Shared Function FailFastOnException (
task As Task
) As Task
public:
[ExtensionAttribute]
static Task^ FailFastOnException(
Task^ task
)
[<ExtensionAttribute>]
static member FailFastOnException :
task : Task -> Task
Parameters
- task
- Type: System.Threading.TasksTask
The original task.
Return Value
Type:
Task
The continuation task.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
Task. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also