TaskExtensions.ThrowIfFaulted Method (Task)
Throws an exception if the task faulted.
Namespace: Microsoft.WindowsAzure.MediaServices.Client
Assembly: Microsoft.WindowsAzure.MediaServices.Client (in Microsoft.WindowsAzure.MediaServices.Client.dll)
Syntax
'Declaration
<ExtensionAttribute> _
Public Shared Sub ThrowIfFaulted ( _
task As Task _
)
'Usage
Dim task As Task
task.ThrowIfFaulted()
public static void ThrowIfFaulted(
this Task task
)
[ExtensionAttribute]
public:
static void ThrowIfFaulted(
Task^ task
)
static member ThrowIfFaulted :
task:Task -> unit
public static function ThrowIfFaulted(
task : Task
)
Parameters
- task
Type: System.Threading.Tasks.Task
The 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 https://msdn.microsoft.com/en-us/library/bb384936(v=azure.100) or https://msdn.microsoft.com/en-us/library/bb383977(v=azure.100).