Partager via


FileShareResource.RestoreAsync(DeletedShare, CancellationToken) Méthode

Définition

Restaurer un partage de fichiers dans un délai de conservation valide si la suppression réversible de partage est activée

  • Chemin de la demande/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/default/shares/{shareName}/restore
  • IdFileShares_Restore d’opération
public virtual System.Threading.Tasks.Task<Azure.Response> RestoreAsync (Azure.ResourceManager.Storage.Models.DeletedShare deletedShare, System.Threading.CancellationToken cancellationToken = default);
abstract member RestoreAsync : Azure.ResourceManager.Storage.Models.DeletedShare * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
override this.RestoreAsync : Azure.ResourceManager.Storage.Models.DeletedShare * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function RestoreAsync (deletedShare As DeletedShare, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response)

Paramètres

deletedShare
DeletedShare

DeletedShare à utiliser.

cancellationToken
CancellationToken

Jeton d’annulation à utiliser.

Retours

Exceptions

deletedShare a la valeur null.

S’applique à