| TaskExtensionsIgnoreExceptions 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 IgnoreExceptions(
this Task task
)
<ExtensionAttribute>
Public Shared Function IgnoreExceptions (
task As Task
) As Task
public:
[ExtensionAttribute]
static Task^ IgnoreExceptions(
Task^ task
)
[<ExtensionAttribute>]
static member IgnoreExceptions :
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