RemoveEnvironment() публичный Метод

public RemoveEnvironment ( string name ) : Microsoft.Azure.Common.Authentication.Models.AzureEnvironment
name string
Результат Microsoft.Azure.Common.Authentication.Models.AzureEnvironment
        public override void ExecuteCmdlet()
        {
            var profileClient = new RMProfileClient(AzureRmProfileProvider.Instance.Profile);

            ConfirmAction(
                "removing environment",
                Name,
                () => WriteObject((PSAzureEnvironment)profileClient.RemoveEnvironment(Name)));
        }
        protected override void ProcessRecord()
        {
            var profileClient = new RMProfileClient(AzureRmProfileProvider.Instance.Profile);

            ConfirmAction(
                Force.IsPresent,
                string.Format(
                    "Removing an environment will remove all associated subscriptions and accounts. Are you sure you want to remove an environment '{0}'?", 
                    Name),
                "Removing environment",
                Name,
                () => WriteObject((PSAzureEnvironment) profileClient.RemoveEnvironment(Name)));
        }