Microsoft.Azure.Commands.Network.RemoveAzureApplicationGatewayUrlPathMapConfigCommand.ExecuteCmdlet C# (CSharp) Method

ExecuteCmdlet() public method

public ExecuteCmdlet ( ) : void
return void
        public override void ExecuteCmdlet()
        {
            base.ExecuteCmdlet();

            var urlPathMap = this.ApplicationGateway.UrlPathMaps.SingleOrDefault
                (resource => string.Equals(resource.Name, this.Name, System.StringComparison.CurrentCultureIgnoreCase));

            if (urlPathMap != null)
            {
                this.ApplicationGateway.UrlPathMaps.Remove(urlPathMap);
            }

            WriteObject(this.ApplicationGateway);
        }
    }
RemoveAzureApplicationGatewayUrlPathMapConfigCommand