Microsoft.Azure.Commands.DataFactories.RemoveAzureDataFactoryHubCommand.ExecuteCmdlet C# (CSharp) Method

ExecuteCmdlet() private method

private ExecuteCmdlet ( ) : void
return void
        public override void ExecuteCmdlet()
        {
            if (ParameterSetName == ByFactoryObject)
            {
                if (DataFactory == null)
                {
                    throw new PSArgumentNullException(string.Format(CultureInfo.InvariantCulture, Resources.DataFactoryArgumentInvalid));
                }

                DataFactoryName = DataFactory.DataFactoryName;
                ResourceGroupName = DataFactory.ResourceGroupName;
            }

            this.ConfirmAction(
                this.Force.IsPresent,
                string.Format(
                    CultureInfo.InvariantCulture,
                    Resources.HubConfirmationMessage,
                    this.Name,
                    this.DataFactoryName),
                string.Format(
                    CultureInfo.InvariantCulture,
                    Resources.HubRemoving,
                    this.Name,
                    this.DataFactoryName),
                this.Name,
                this.ExecuteDelete);
        }
RemoveAzureDataFactoryHubCommand