コード例 #1
0
 /// <summary>
 /// Deletes specified share under its account.
 /// </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='xMsSnapshot'>
 /// Optional, used to delete a snapshot.
 /// </param>
 /// <param name='include'>
 /// Optional. Valid values are: snapshots, leased-snapshots, none. The default
 /// value is snapshots. For 'snapshots', the file share is deleted including
 /// all of its file share snapshots. If the file share contains
 /// leased-snapshots, the deletion fails. For 'leased-snapshots', the file
 /// share is deleted included all of its file share snapshots
 /// (leased/unleased). For 'none', the file share is deleted if it has no share
 /// snapshots. If the file share contains any snapshots (leased or unleased),
 /// the deletion fails.
 /// </param>
 public static void Delete(this IFileSharesOperations operations, string resourceGroupName, string accountName, string shareName, string xMsSnapshot = default(string), string include = default(string))
 {
     operations.DeleteAsync(resourceGroupName, accountName, shareName, xMsSnapshot, include).GetAwaiter().GetResult();
 }
コード例 #2
0
 /// <summary>
 /// Deletes specified share under its account.
 /// </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>
 public static void Delete(this IFileSharesOperations operations, string resourceGroupName, string accountName, string shareName)
 {
     operations.DeleteAsync(resourceGroupName, accountName, shareName).GetAwaiter().GetResult();
 }
 /// <summary>
 /// Deletes the file share.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='deviceName'>
 /// The device name.
 /// </param>
 /// <param name='fileServerName'>
 /// The file server name.
 /// </param>
 /// <param name='shareName'>
 /// The file share Name
 /// </param>
 /// <param name='resourceGroupName'>
 /// The resource group name
 /// </param>
 /// <param name='managerName'>
 /// The manager name
 /// </param>
 public static void Delete(this IFileSharesOperations operations, string deviceName, string fileServerName, string shareName, string resourceGroupName, string managerName)
 {
     operations.DeleteAsync(deviceName, fileServerName, shareName, resourceGroupName, managerName).GetAwaiter().GetResult();
 }