mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Add 'TimeToLive' and 'Hops' aliases to MaxHops parameter of Test-Connection cmdlet. (#7850)
Add the following aliases to MaxHops parameter of Test-Connection cmdlet: - TimeToLive It is the similar parameter's name from Windows PowerShell Test-Connection cmdlet . - Hops Similar parameter's name from Test-NetConnection cmdlet.
This commit is contained in:
+2
-2
@@ -85,14 +85,14 @@ namespace Microsoft.PowerShell.Commands
|
||||
/// <summary>
|
||||
/// 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 CurrentMTUSize Time-to-Live (TTL) value found in the packet header.
|
||||
/// they decrement the Time-to-Live (TTL) value found in the packet header.
|
||||
/// The default (from Windows) is 128 hops.
|
||||
/// </summary>
|
||||
[Parameter(ParameterSetName = ParameterSetPingCount)]
|
||||
[Parameter(ParameterSetName = ParameterSetPingContinues)]
|
||||
[Parameter(ParameterSetName = ParameterSetTraceRoute)]
|
||||
[ValidateRange(0, sMaxHops)]
|
||||
[Alias("Ttl")]
|
||||
[Alias("Ttl", "TimeToLive", "Hops")]
|
||||
public int MaxHops { get; set; } = sMaxHops;
|
||||
|
||||
private const int sMaxHops = 128;
|
||||
|
||||
+1
-1
@@ -67,7 +67,7 @@
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="2.9.0" />
|
||||
<PackageReference Include="NJsonSchema" Version="9.10.75" />
|
||||
<PackageReference Include="NJsonSchema" Version="9.11.0" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
<ItemGroup>
|
||||
<!-- Source: https://github.com/lunet-io/markdig/ -->
|
||||
<ProjectReference Include="../System.Management.Automation/System.Management.Automation.csproj" />
|
||||
<PackageReference Include="Markdig.Signed" Version="0.15.2" />
|
||||
<PackageReference Include="Markdig.Signed" Version="0.15.3" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
||||
Reference in New Issue
Block a user