Microsoft.Azure.Commands.Network.AzureApplicationGatewayProbeConfigBase.NewObject C# (CSharp) Method

NewObject() public method

public NewObject ( ) : PSApplicationGatewayProbe
return Microsoft.Azure.Commands.Network.Models.PSApplicationGatewayProbe
        public PSApplicationGatewayProbe NewObject()
        {
            var probe = new PSApplicationGatewayProbe();
            probe.Name = this.Name;
            probe.Protocol = this.Protocol;
            probe.Host = this.HostName;
            probe.Path = this.Path;
            probe.Interval = this.Interval;
            probe.Timeout = this.Timeout;
            probe.UnhealthyThreshold = this.UnhealthyThreshold;

            probe.Id =
                ApplicationGatewayChildResourceHelper.GetResourceNotSetId(
                    this.NetworkClient.NetworkManagementClient.SubscriptionId,
                    Microsoft.Azure.Commands.Network.Properties.Resources.ApplicationGatewayProbeName,
                    this.Name);

            return probe;
        }
    }
AzureApplicationGatewayProbeConfigBase