Microsoft.Azure.Commands.Batch.Models.BatchClient.StopResizePool C# (CSharp) Method

StopResizePool() public method

Stops the resize operation on the specified pool.
public StopResizePool ( BatchAccountContext context, string poolId, IEnumerable additionalBehaviors = null ) : void
context BatchAccountContext The account to use.
poolId string The id of the pool.
additionalBehaviors IEnumerable Additional client behaviors to perform.
return void
        public void StopResizePool(BatchAccountContext context, string poolId, IEnumerable<BatchClientBehavior> additionalBehaviors = null)
        {
            if (string.IsNullOrWhiteSpace(poolId))
            {
                throw new ArgumentNullException("poolId");
            }

            WriteVerbose(string.Format(Resources.StopResizingPool, poolId));
            PoolOperations poolOperations = context.BatchOMClient.PoolOperations;
            poolOperations.StopResizePool(poolId, additionalBehaviors);
        }
BatchClient