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

DeleteApplication() public method

public DeleteApplication ( string resourceGroupName, string accountName, string applicationId ) : void
resourceGroupName string
accountName string
applicationId string
return void
        public virtual void DeleteApplication(string resourceGroupName, string accountName, string applicationId)
        {
            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.Application.Delete(resourceGroupName, accountName, applicationId);
        }

Usage Example

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

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