IotHubDeviceClient.CompleteFileUploadAsync Method

Definition

Notify IoT hub that a device's file upload has finished.

public System.Threading.Tasks.Task CompleteFileUploadAsync (Microsoft.Azure.Devices.Client.FileUploadCompletionNotification notification, System.Threading.CancellationToken cancellationToken = default);
member this.CompleteFileUploadAsync : Microsoft.Azure.Devices.Client.FileUploadCompletionNotification * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function CompleteFileUploadAsync (notification As FileUploadCompletionNotification, Optional cancellationToken As CancellationToken = Nothing) As Task

Parameters

notification
FileUploadCompletionNotification

The notification details, including if the file upload succeeded.

cancellationToken
CancellationToken

The cancellation token.

Returns

Exceptions

When notification is null.

Thrown when the operation has been canceled.

Applies to