Skip to content

Commit 616646a

Browse files
Fix incorrect case/capitalization in ref docs (#11941)
This ensures the following components have the correct/consistent case throughout the reference documentation: Preference variable, PS environment variable, PS drive, PS provider, PS command name, PS command argument, PS module, PS file extension, PS host name/application, #Requires statement, parameter name, about_* topic, member name, scope modifier, keyword, operator, calculated property key/value, attribute, type accelerator, type literal/name, WMI namespace/class, variable name, special character, comment-based help keyword, product/company name, Windows drive letter/directory, Windows/Unix environment variable In addition, changes include fixes to incorrect terminology (e.g., referring to a keyword as a command) and formatting of PS syntax elements (non-exhaustive).
1 parent 3ba06a3 commit 616646a

File tree

40 files changed

+97
-97
lines changed

40 files changed

+97
-97
lines changed

reference/docs-conceptual/developer/cmdlet/how-to-invoke-a-cmdlet-from-within-a-cmdlet.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ computer. The call to the `Get-Process` cmdlet is equivalent to the following co
1414
retrieves all the processes whose names start with the characters "a" through "t".
1515

1616
```powershell
17-
Get-Process -name [a-t]*
17+
Get-Process -Name [a-t]*
1818
```
1919

2020
> [!IMPORTANT]

reference/docs-conceptual/developer/cmdlet/how-to-support-jobs.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ information about background jobs, see [Background Jobs](./background-jobs.md).
3030
1. Create an object that derives from the
3131
[System.Management.Automation.Job](/dotnet/api/System.Management.Automation.Job) class. This
3232
object can be a custom job object or one of the job objects provided by Windows PowerShell, such
33-
a [System.Management.Automation.Pseventjob](/dotnet/api/System.Management.Automation.PSEventJob)
33+
a [System.Management.Automation.PSEventJob](/dotnet/api/System.Management.Automation.PSEventJob)
3434
object.
3535

3636
The following example shows a custom job object.
@@ -172,7 +172,7 @@ using System.Diagnostics; // Diagnostics namespace for retrieving
172172
// user/documents/WindowsPowerShell/modules/GetProcessSample06
173173
//
174174
// To import the module, run the following command: Import-Module GetProcessSample06.
175-
// To test the cmdlet, run the following command: Get-Proc -name <process name>
175+
// To test the cmdlet, run the following command: Get-Proc -Name <process name>
176176
//
177177
178178
//

reference/docs-conceptual/developer/cmdlet/how-to-validate-an-argument-count.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ title: How to Validate an Argument Count
99
This example shows how to specify a validation rule that the Windows PowerShell runtime can use to check the number of arguments (the count) that a parameter accepts before the cmdlet is run. You set this validation rule by declaring the ValidateCount attribute.
1010

1111
> [!NOTE]
12-
> For more information about the class that defines this attribute, see [System.Management.Automation.Validatecountattribute](/dotnet/api/System.Management.Automation.ValidateCountAttribute).
12+
> For more information about the class that defines this attribute, see [System.Management.Automation.ValidateCountAttribute](/dotnet/api/System.Management.Automation.ValidateCountAttribute).
1313
1414
## To validate an argument count
1515

reference/docs-conceptual/developer/cmdlet/how-to-validate-an-argument-pattern.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ title: How to Validate an Argument Pattern
99
This example shows how to specify a validation rule that the Windows PowerShell runtime can use to check the character pattern of the parameter argument before the cmdlet is run. You set this validation rule by declaring the ValidatePattern attribute.
1010

1111
> [!NOTE]
12-
> For more information about the class that defines this attribute, see [System.Management.Automation.Validatepatternattribute](/dotnet/api/System.Management.Automation.ValidatePatternAttribute).
12+
> For more information about the class that defines this attribute, see [System.Management.Automation.ValidatePatternAttribute](/dotnet/api/System.Management.Automation.ValidatePatternAttribute).
1313
1414
## To validate an argument pattern
1515

reference/docs-conceptual/developer/cmdlet/how-to-validate-an-argument-range.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ title: How to Validate an Argument Range
99
This example shows how to specify a validation rule that the Windows PowerShell runtime can use to check the minimum and maximum values of the parameter argument before the cmdlet is run. You set this validation rule by declaring the ValidateRange attribute.
1010

1111
> [!NOTE]
12-
> For more information about the class that defines this attribute, see [System.Management.Automation.Validaterangeattribute](/dotnet/api/System.Management.Automation.ValidateRangeAttribute).
12+
> For more information about the class that defines this attribute, see [System.Management.Automation.ValidateRangeAttribute](/dotnet/api/System.Management.Automation.ValidateRangeAttribute).
1313
1414
### To validate an argument range
1515

reference/docs-conceptual/developer/cmdlet/how-to-validate-an-argument-set.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ title: How to Validate an Argument Set
99
This example shows how to specify a validation rule that the Windows PowerShell runtime can use to check the parameter argument before the cmdlet is run. This validation rule provides a set of the valid values for the parameter argument.
1010

1111
> [!NOTE]
12-
> For more information about the class that defines this attribute, see [System.Management.Automation.Validatesetattribute](/dotnet/api/System.Management.Automation.ValidateSetAttribute).
12+
> For more information about the class that defines this attribute, see [System.Management.Automation.ValidateSetAttribute](/dotnet/api/System.Management.Automation.ValidateSetAttribute).
1313
1414
## To validate an argument set
1515

@@ -31,7 +31,7 @@ For more information about how to declare this attribute, see [ValidateSet Attri
3131

3232
## See Also
3333

34-
[System.Management.Automation.Validatesetattribute](/dotnet/api/System.Management.Automation.ValidateSetAttribute)
34+
[System.Management.Automation.ValidateSetAttribute](/dotnet/api/System.Management.Automation.ValidateSetAttribute)
3535

3636
[ValidateSet Attribute Declaration](./validateset-attribute-declaration.md)
3737

reference/docs-conceptual/developer/cmdlet/how-to-validate-the-argument-length.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ title: How to Validate the Argument Length
99
This example shows how to specify a validation rule that the Windows PowerShell runtime can use to check the number of characters (the length) of the parameter argument before the cmdlet is run. You set this validation rule by declaring the ValidateLength attribute.
1010

1111
> [!NOTE]
12-
> For more information about the class that defines this attribute, see [System.Management.Automation.Validatelengthattribute](/dotnet/api/System.Management.Automation.ValidateLengthAttribute).
12+
> For more information about the class that defines this attribute, see [System.Management.Automation.ValidateLengthAttribute](/dotnet/api/System.Management.Automation.ValidateLengthAttribute).
1313
1414
## To validate the argument length
1515

reference/docs-conceptual/developer/cmdlet/interpreting-errorrecord-objects.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ used to identify the error. This information is available through the following
121121

122122
- [System.Management.Automation.Cmdlet.WriteError][4]
123123

124-
- [System.Management.Automation.Cmdlet.Throwterminatingerror*][3]
124+
- [System.Management.Automation.Cmdlet.ThrowTerminatingError*][3]
125125

126126
- [Adding Non-Terminating Error Reporting to Your Cmdlet](./adding-non-terminating-error-reporting-to-your-cmdlet.md)
127127

reference/docs-conceptual/developer/cmdlet/parameter-attribute-declaration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ hidden from the user for tab expansion and IntelliSense. The default is `false`.
101101

102102
## See Also
103103

104-
- [System.Management.Automation.Parameterattribute][05]
104+
- [System.Management.Automation.ParameterAttribute][05]
105105
- [Cmdlet Parameter Names][07]
106106
- [Writing a Windows PowerShell Cmdlet][02]
107107

reference/docs-conceptual/developer/cmdlet/requesting-confirmation-from-cmdlets.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,11 @@ If the cmdlet or provider must send a message but not request confirmation, it c
6767

6868
Cmdlets and providers first call the following methods to request confirmation before they attempt to perform an operation that changes a system outside of Windows PowerShell:
6969

70-
- [System.Management.Automation.Cmdlet.Shouldprocess](/dotnet/api/System.Management.Automation.Cmdlet.ShouldProcess)
70+
- [System.Management.Automation.Cmdlet.ShouldProcess](/dotnet/api/System.Management.Automation.Cmdlet.ShouldProcess)
7171

72-
- [System.Management.Automation.Provider.Cmdletprovider.Shouldprocess](/dotnet/api/System.Management.Automation.Provider.CmdletProvider.ShouldProcess)
72+
- [System.Management.Automation.Provider.CmdletProvider.ShouldProcess](/dotnet/api/System.Management.Automation.Provider.CmdletProvider.ShouldProcess)
7373

74-
They do so by calling the [System.Management.Automation.Cmdlet.Shouldprocess](/dotnet/api/System.Management.Automation.Cmdlet.ShouldProcess) method, which prompts the user to confirm the operation based on how the user invoked the command.
74+
They do so by calling the [System.Management.Automation.Cmdlet.ShouldProcess](/dotnet/api/System.Management.Automation.Cmdlet.ShouldProcess) method, which prompts the user to confirm the operation based on how the user invoked the command.
7575

7676
## See Also
7777

0 commit comments

Comments
 (0)