TestConnectionCommand.MaxHops Property

Definition

Gets or sets the number of times the Ping data packets can be forwarded by routers. As gateways and routers transmit packets through a network, they decrement the Time-to-Live (TTL) value found in the packet header. The default (from Windows) is 128 hops.

[System.Management.Automation.Alias(new System.String[] { "Ttl", "TimeToLive", "Hops" })]
[System.Management.Automation.Parameter(ParameterSetName="DefaultPing")]
[System.Management.Automation.Parameter(ParameterSetName="RepeatPing")]
[System.Management.Automation.Parameter(ParameterSetName="TraceRoute")]
[System.Management.Automation.ValidateRange(1, 128)]
public int MaxHops { get; set; }
[<System.Management.Automation.Alias(new System.String[] { "Ttl", "TimeToLive", "Hops" })>]
[<System.Management.Automation.Parameter(ParameterSetName="DefaultPing")>]
[<System.Management.Automation.Parameter(ParameterSetName="RepeatPing")>]
[<System.Management.Automation.Parameter(ParameterSetName="TraceRoute")>]
[<System.Management.Automation.ValidateRange(1, 128)>]
member this.MaxHops : int with get, set
Public Property MaxHops As Integer

Property Value

Attributes

Applies to