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

DeleteApplicationPackage() public method

public DeleteApplicationPackage ( string resourceGroupName, string accountName, string applicationId, string version ) : void
resourceGroupName string
accountName string
applicationId string
version string
return void
        public virtual void DeleteApplicationPackage(string resourceGroupName, string accountName, string applicationId, string version)
        {
            if (string.IsNullOrEmpty(resourceGroupName))
            {
                // use resource mgr to see if account exists and then use resource group name to do the actual lookup
                resourceGroupName = GetGroupForAccount(accountName);
            }

            BatchManagementClient.ApplicationPackage.Delete(resourceGroupName, accountName, applicationId, version);
        }

Usage Example

Example #1
0
        /// <summary>
        /// Deletes an application package used in a Scenario test.
        /// </summary>
        public static void DeleteApplicationPackage(BatchController controller, BatchAccountContext context, string applicationId, string version)
        {
            BatchClient client = new BatchClient(controller.BatchManagementClient, controller.ResourceManagementClient);

            client.DeleteApplicationPackage(context.ResourceGroupName, context.AccountName, applicationId, version);
        }
All Usage Examples Of Microsoft.Azure.Commands.Batch.Models.BatchClient::DeleteApplicationPackage
BatchClient