Microsoft.Azure.Commands.Batch.Models.BatchClient.UpdateApplication C# (CSharp) Méthode

UpdateApplication() public méthode

public UpdateApplication ( string resourceGroupName, string accountName, string applicationId, bool allowUpdates, string defaultVersion, string displayName ) : void
resourceGroupName string
accountName string
applicationId string
allowUpdates bool
defaultVersion string
displayName string
Résultat void
        public virtual void UpdateApplication(
            string resourceGroupName,
            string accountName,
            string applicationId,
            bool? allowUpdates,
            string defaultVersion,
            string displayName)
        {
            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);
            }

            UpdateApplicationParameters uap = new UpdateApplicationParameters();

            if (allowUpdates != null)
            {
                uap.AllowUpdates = allowUpdates;
            }

            if (defaultVersion != null)
            {
                uap.DefaultVersion = defaultVersion;
            }

            if (displayName != null)
            {
                uap.DisplayName = displayName;
            }

            BatchManagementClient.Application.Update(
                resourceGroupName,
                accountName,
                applicationId,
                uap);
        }
BatchClient