コード例 #1
0
 /// <summary>
 /// Restore a file share within a valid retention days if share soft delete is
 /// enabled
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group within the user's subscription. The name is
 /// case insensitive.
 /// </param>
 /// <param name='accountName'>
 /// The name of the storage account within the specified resource group.
 /// Storage account names must be between 3 and 24 characters in length and use
 /// numbers and lower-case letters only.
 /// </param>
 /// <param name='shareName'>
 /// The name of the file share within the specified storage account. File share
 /// names must be between 3 and 63 characters in length and use numbers,
 /// lower-case letters and dash (-) only. Every dash (-) character must be
 /// immediately preceded and followed by a letter or number.
 /// </param>
 /// <param name='deletedShareName'>
 /// Required. Identify the name of the deleted share that will be restored.
 /// </param>
 /// <param name='deletedShareVersion'>
 /// Required. Identify the version of the deleted share that will be restored.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task RestoreAsync(this IFileSharesOperations operations, string resourceGroupName, string accountName, string shareName, string deletedShareName, string deletedShareVersion, CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.RestoreWithHttpMessagesAsync(resourceGroupName, accountName, shareName, deletedShareName, deletedShareVersion, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }