ShareServiceClient.UndeleteShare(String, String, CancellationToken) 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 Azure.Response<Azure.Storage.Files.Shares.ShareClient> UndeleteShare (string deletedShareName, string deletedShareVersion, System.Threading.CancellationToken cancellationToken = default);
abstract member UndeleteShare : string * string * System.Threading.CancellationToken -> Azure.Response<Azure.Storage.Files.Shares.ShareClient>
override this.UndeleteShare : string * string * System.Threading.CancellationToken -> Azure.Response<Azure.Storage.Files.Shares.ShareClient>
Public Overridable Function UndeleteShare (deletedShareName As String, deletedShareVersion As String, Optional cancellationToken As CancellationToken = Nothing) As 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