共用方式為


SnapshotOperationsExtensions.DeleteAsync Method

Definition

Delete an existing snapshot according to the snapshotId. All object data and information in the snapshot will also be deleted. Only the source subscription who took the snapshot can delete the snapshot. If the user does not delete a snapshot with this API, the snapshot will still be automatically deleted in 48 hours after creation.

public static System.Threading.Tasks.Task DeleteAsync (this Microsoft.Azure.CognitiveServices.Vision.Face.ISnapshotOperations operations, Guid snapshotId, System.Threading.CancellationToken cancellationToken = default);
static member DeleteAsync : Microsoft.Azure.CognitiveServices.Vision.Face.ISnapshotOperations * Guid * System.Threading.CancellationToken -> System.Threading.Tasks.Task
<Extension()>
Public Function DeleteAsync (operations As ISnapshotOperations, snapshotId As Guid, Optional cancellationToken As CancellationToken = Nothing) As Task

Parameters

operations
ISnapshotOperations

The operations group for this extension method.

snapshotId
Guid

Id referencing a particular snapshot.

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to