Compartilhar via


FileShareResource.RestoreAsync(DeletedShare, CancellationToken) Método

Definição

Restaurar um compartilhamento de arquivos dentro de dias de retenção válidos se a exclusão temporária de compartilhamento estiver habilitada

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/default/shares/{shareName}/restore
  • Operação IdFileShares_Restore
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)

Parâmetros

deletedShare
DeletedShare

O DeletedShare a ser usado.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

deletedShare é nulo.

Aplica-se a