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

ExecuteCmdlet() public method

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

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

                WriteObject(probe);
            }
            else
            {
                var probes = this.ApplicationGateway.Probes;
                WriteObject(probes, true);
            }

        }
    }
GetAzureApplicationGatewayProbeConfigCommand