Skip to content

Commit 2ae4886

Browse files
authored
Merge pull request #11903 from MicrosoftDocs/main
3/20/2025 PM Publish
2 parents 75f96db + 74f2cd4 commit 2ae4886

File tree

5 files changed

+137
-136
lines changed

5 files changed

+137
-136
lines changed

reference/5.1/Microsoft.PowerShell.Core/About/about_Hash_Tables.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Describes how to create, use, and sort hashtables in PowerShell.
1616
## Long description
1717

1818
A hashtable, also known as a dictionary or associative array, is a compact data
19-
structure that stores one or more key-value pairs. For example, a hash table
19+
structure that stores one or more key-value pairs. For example, a hashtable
2020
might contain a series of IP addresses and computer names, where the IP
2121
addresses are the keys and the computer names are the values, or vice versa.
2222

@@ -431,8 +431,8 @@ $now = (Get-Date)
431431
$hash.Add($t, $now)
432432
```
433433

434-
You can't use a subtraction operator to remove a key-value pair from a hash
435-
table, but you can use the `Remove()` method of the hashtable object. The
434+
You can't use a subtraction operator to remove a key-value pair from a
435+
hashtable, but you can use the `Remove()` method of the hashtable object. The
436436
`Remove` method has the following syntax:
437437

438438
```
@@ -561,8 +561,8 @@ Although you can't sort a hashtable, you can use the `GetEnumerator()` method
561561
of hashtables to enumerate the keys and values, and then use the `Sort-Object`
562562
cmdlet to sort the enumerated values for display.
563563

564-
For example, the following commands enumerate the keys and values in the hash
565-
table in the `$p` variable and then sort the keys in alphabetical order.
564+
For example, the following commands enumerate the keys and values in the
565+
hashtable in the `$p` variable and then sort the keys in alphabetical order.
566566

567567
```powershell
568568
PS> $p.GetEnumerator() | Sort-Object -Property key

reference/7.4/Microsoft.PowerShell.Core/About/about_Hash_Tables.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Describes how to create, use, and sort hashtables in PowerShell.
1616
## Long description
1717

1818
A hashtable, also known as a dictionary or associative array, is a compact data
19-
structure that stores one or more key-value pairs. For example, a hash table
19+
structure that stores one or more key-value pairs. For example, a hashtable
2020
might contain a series of IP addresses and computer names, where the IP
2121
addresses are the keys and the computer names are the values, or vice versa.
2222

@@ -431,8 +431,8 @@ $now = (Get-Date)
431431
$hash.Add($t, $now)
432432
```
433433

434-
You can't use a subtraction operator to remove a key-value pair from a hash
435-
table, but you can use the `Remove()` method of the hashtable object. The
434+
You can't use a subtraction operator to remove a key-value pair from a
435+
hashtable, but you can use the `Remove()` method of the hashtable object. The
436436
`Remove` method has the following syntax:
437437

438438
```
@@ -561,8 +561,8 @@ Although you can't sort a hashtable, you can use the `GetEnumerator()` method
561561
of hashtables to enumerate the keys and values, and then use the `Sort-Object`
562562
cmdlet to sort the enumerated values for display.
563563

564-
For example, the following commands enumerate the keys and values in the hash
565-
table in the `$p` variable and then sort the keys in alphabetical order.
564+
For example, the following commands enumerate the keys and values in the
565+
hashtable in the `$p` variable and then sort the keys in alphabetical order.
566566

567567
```powershell
568568
PS> $p.GetEnumerator() | Sort-Object -Property key

reference/7.5/Microsoft.PowerShell.Core/About/about_Hash_Tables.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Describes how to create, use, and sort hashtables in PowerShell.
1616
## Long description
1717

1818
A hashtable, also known as a dictionary or associative array, is a compact data
19-
structure that stores one or more key-value pairs. For example, a hash table
19+
structure that stores one or more key-value pairs. For example, a hashtable
2020
might contain a series of IP addresses and computer names, where the IP
2121
addresses are the keys and the computer names are the values, or vice versa.
2222

@@ -431,8 +431,8 @@ $now = (Get-Date)
431431
$hash.Add($t, $now)
432432
```
433433

434-
You can't use a subtraction operator to remove a key-value pair from a hash
435-
table, but you can use the `Remove()` method of the hashtable object. The
434+
You can't use a subtraction operator to remove a key-value pair from a
435+
hashtable, but you can use the `Remove()` method of the hashtable object. The
436436
`Remove` method has the following syntax:
437437

438438
```
@@ -561,8 +561,8 @@ Although you can't sort a hashtable, you can use the `GetEnumerator()` method
561561
of hashtables to enumerate the keys and values, and then use the `Sort-Object`
562562
cmdlet to sort the enumerated values for display.
563563

564-
For example, the following commands enumerate the keys and values in the hash
565-
table in the `$p` variable and then sort the keys in alphabetical order.
564+
For example, the following commands enumerate the keys and values in the
565+
hashtable in the `$p` variable and then sort the keys in alphabetical order.
566566

567567
```powershell
568568
PS> $p.GetEnumerator() | Sort-Object -Property key

reference/7.6/Microsoft.PowerShell.Core/About/about_Hash_Tables.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Describes how to create, use, and sort hashtables in PowerShell.
1616
## Long description
1717

1818
A hashtable, also known as a dictionary or associative array, is a compact data
19-
structure that stores one or more key-value pairs. For example, a hash table
19+
structure that stores one or more key-value pairs. For example, a hashtable
2020
might contain a series of IP addresses and computer names, where the IP
2121
addresses are the keys and the computer names are the values, or vice versa.
2222

@@ -431,8 +431,8 @@ $now = (Get-Date)
431431
$hash.Add($t, $now)
432432
```
433433

434-
You can't use a subtraction operator to remove a key-value pair from a hash
435-
table, but you can use the `Remove()` method of the hashtable object. The
434+
You can't use a subtraction operator to remove a key-value pair from a
435+
hashtable, but you can use the `Remove()` method of the hashtable object. The
436436
`Remove` method has the following syntax:
437437

438438
```
@@ -561,8 +561,8 @@ Although you can't sort a hashtable, you can use the `GetEnumerator()` method
561561
of hashtables to enumerate the keys and values, and then use the `Sort-Object`
562562
cmdlet to sort the enumerated values for display.
563563

564-
For example, the following commands enumerate the keys and values in the hash
565-
table in the `$p` variable and then sort the keys in alphabetical order.
564+
For example, the following commands enumerate the keys and values in the
565+
hashtable in the `$p` variable and then sort the keys in alphabetical order.
566566

567567
```powershell
568568
PS> $p.GetEnumerator() | Sort-Object -Property key

0 commit comments

Comments
 (0)