Пример #1
0
 /// <summary>
 /// Lists all shares.
 /// </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='maxpagesize'>
 /// Optional. Specified maximum number of shares that can be included in the
 /// list.
 /// </param>
 /// <param name='filter'>
 /// Optional. When specified, only share names starting with the filter will be
 /// listed.
 /// </param>
 public static IPage <FileShareItem> List(this IFileSharesOperations operations, string resourceGroupName, string accountName, string maxpagesize = default(string), string filter = default(string))
 {
     return(operations.ListAsync(resourceGroupName, accountName, maxpagesize, filter).GetAwaiter().GetResult());
 }
Пример #2
0
 /// <summary>
 /// Returns a list of all fabric file shares at a certain location.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Name of the resource group.
 /// </param>
 /// <param name='location'>
 /// Location of the resource.
 /// </param>
 /// <param name='odataQuery'>
 /// OData parameters to apply to the operation.
 /// </param>
 public static IEnumerable <FileShare> List(this IFileSharesOperations operations, string resourceGroupName, string location, ODataQuery <FileShare> odataQuery = default(ODataQuery <FileShare>))
 {
     return(operations.ListAsync(resourceGroupName, location, odataQuery).GetAwaiter().GetResult());
 }