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

ExecuteCmdlet() public method

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

            if (!string.IsNullOrEmpty(this.Name))
            {
                var urlPathMap =
                    this.ApplicationGateway.UrlPathMaps.First(
                        resource =>
                            string.Equals(resource.Name, this.Name, System.StringComparison.CurrentCultureIgnoreCase));

                WriteObject(urlPathMap);
            }
            else
            {
                var urlPathMaps = this.ApplicationGateway.UrlPathMaps;
                WriteObject(urlPathMaps, true);
            }
        }
    }
GetAzureApplicationGatewayUrlPathMapConfigCommand