コード例 #1
0
 /// <summary>
 /// Updates a Maps Account. Only a subset of the parameters may be updated
 /// after creation, such as Sku and Tags.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the Azure Resource Group.
 /// </param>
 /// <param name='accountName'>
 /// The name of the Maps Account.
 /// </param>
 /// <param name='mapsAccountUpdateParameters'>
 /// The updated parameters for the Maps Account.
 /// </param>
 public static MapsAccount Update(this IAccountsOperations operations, string resourceGroupName, string accountName, MapsAccountUpdateParameters mapsAccountUpdateParameters)
 {
     return(operations.UpdateAsync(resourceGroupName, accountName, mapsAccountUpdateParameters).GetAwaiter().GetResult());
 }
コード例 #2
0
 /// <summary>
 /// Updates a Maps Account. Only a subset of the parameters may be updated
 /// after creation, such as Sku and Tags.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the Azure Resource Group.
 /// </param>
 /// <param name='accountName'>
 /// The name of the Maps Account.
 /// </param>
 /// <param name='mapsAccountUpdateParameters'>
 /// The updated parameters for the Maps Account.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <MapsAccount> UpdateAsync(this IAccountsOperations operations, string resourceGroupName, string accountName, MapsAccountUpdateParameters mapsAccountUpdateParameters, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, accountName, mapsAccountUpdateParameters, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }