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

ExecuteCmdlet() public method

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

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

                WriteObject(backendAddressPool);
            }
            else
            {
                var backendAddressPools = this.ApplicationGateway.BackendAddressPools;
                WriteObject(backendAddressPools, true);
            }

        }
    }
GetAzureApplicationGatewayBackendAddressPoolCommand