Microsoft.Azure.Commands.Batch.RemoveBatchNodeFileCommand.ExecuteCmdlet C# (CSharp) Method

ExecuteCmdlet() public method

public ExecuteCmdlet ( ) : void
return void
        public override void ExecuteCmdlet()
        {
            string fileName = this.InputObject == null ? this.Name : this.InputObject.Name;
            NodeFileOperationParameters parameters = new NodeFileOperationParameters(this.BatchContext, this.JobId, this.TaskId, this.PoolId,
                this.ComputeNodeId, this.Name, this.InputObject, this.AdditionalBehaviors);

            ConfirmAction(
                Force.IsPresent,
                string.Format(Resources.RemoveNodeFileConfirm, fileName),
                Resources.RemoveNodeFile,
                fileName,
                () => BatchClient.DeleteNodeFile(Recursive.IsPresent, parameters));
        }
    }
RemoveBatchNodeFileCommand