Megosztás a következőn keresztül:


ShareServiceClient.UndeleteShareAsync Method

Definition

Restores a previously deleted Share. This API is only functional is Share Soft Delete is enabled for the storage account associated with the share.

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.Storage.Files.Shares.ShareClient>> UndeleteShareAsync (string deletedShareName, string deletedShareVersion, System.Threading.CancellationToken cancellationToken = default);
abstract member UndeleteShareAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Storage.Files.Shares.ShareClient>>
override this.UndeleteShareAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Storage.Files.Shares.ShareClient>>
Public Overridable Function UndeleteShareAsync (deletedShareName As String, deletedShareVersion As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of ShareClient))

Parameters

deletedShareName
String

The name of the share to restore.

deletedShareVersion
String

The version of the share to restore.

cancellationToken
CancellationToken

Optional CancellationToken to propagate notifications that the operation should be cancelled.

Returns

A Response<T> pointed at the restored Share.

Remarks

A RequestFailedException will be thrown if a failure occurs

Applies to