TestConnectionCommand.MaxHops Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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