diff --git a/developer/cmdlet/creating-a-cmdlet-to-access-a-data-store.md b/developer/cmdlet/creating-a-cmdlet-to-access-a-data-store.md index 8b4412d4efaf..a5cff49e6fc4 100644 --- a/developer/cmdlet/creating-a-cmdlet-to-access-a-data-store.md +++ b/developer/cmdlet/creating-a-cmdlet-to-access-a-data-store.md @@ -111,7 +111,7 @@ When this parameter is specified, the cmdlet uses the default parameter set `Pat This cmdlet defines the following support parameters that can be used to modify the search capabilities of the cmdlet. -The `Script` parameter specifies a script block that can be used to provide an alternate search mechanism for the cmdlet. The script must contain the patterns used for matching and return a [System.Management.Automation.Psobject](/dotnet/api/System.Management.Automation.PSObject) object. Note that this parameter is also the unique parameter that identifies the `ScriptParameterSet` parameter set. When the Windows PowerShell runtime sees this parameter, it uses only parameters that belong to the `ScriptParameterSet` parameter set. +The `Script` parameter specifies a script block that can be used to provide an alternate search mechanism for the cmdlet. The script must contain the patterns used for matching and return a [System.Management.Automation.PSObject](/dotnet/api/System.Management.Automation.PSObject) object. Note that this parameter is also the unique parameter that identifies the `ScriptParameterSet` parameter set. When the Windows PowerShell runtime sees this parameter, it uses only parameters that belong to the `ScriptParameterSet` parameter set. ```csharp [Parameter( diff --git a/developer/cmdlet/how-to-invoke-scripts-within-a-cmdlet.md b/developer/cmdlet/how-to-invoke-scripts-within-a-cmdlet.md index 971ede0c4b3d..7418dbf1d5a4 100644 --- a/developer/cmdlet/how-to-invoke-scripts-within-a-cmdlet.md +++ b/developer/cmdlet/how-to-invoke-scripts-within-a-cmdlet.md @@ -11,7 +11,7 @@ caps.latest.revision: 9 --- # How to Invoke Scripts Within a Cmdlet -This example shows how to invoke a script that is supplied to a cmdlet. The script is executed by the cmdlet, and its results are returned to the cmdlet as a collection of [System.Management.Automation.Psobject](/dotnet/api/System.Management.Automation.PSObject) objects. +This example shows how to invoke a script that is supplied to a cmdlet. The script is executed by the cmdlet, and its results are returned to the cmdlet as a collection of [System.Management.Automation.PSObject](/dotnet/api/System.Management.Automation.PSObject) objects. ## To invoke a script block @@ -31,7 +31,7 @@ This example shows how to invoke a script that is supplied to a cmdlet. The scri ); ``` -2. Then, the script iterates through the returned collection of [System.Management.Automation.Psobject](/dotnet/api/System.Management.Automation.PSObject) objects and perform the necessary operations. +2. Then, the script iterates through the returned collection of [System.Management.Automation.PSObject](/dotnet/api/System.Management.Automation.PSObject) objects and perform the necessary operations. ```c foreach (PSObject psObject in psObjects) diff --git a/developer/hosting/runspace01-sample.md b/developer/hosting/runspace01-sample.md index d22f3b176c87..d5e8dccdb0af 100644 --- a/developer/hosting/runspace01-sample.md +++ b/developer/hosting/runspace01-sample.md @@ -25,7 +25,7 @@ This sample shows how to use the [System.Management.Automation.Powershell](/dotn - Running the command synchronously. -- Using [System.Management.Automation.Psobject](/dotnet/api/System.Management.Automation.PSObject) objects to extract properties from the objects returned by the command. +- Using [System.Management.Automation.PSObject](/dotnet/api/System.Management.Automation.PSObject) objects to extract properties from the objects returned by the command. ## Example diff --git a/developer/hosting/runspace03-sample.md b/developer/hosting/runspace03-sample.md index 9c7d3ebbfe11..f8936ba87217 100644 --- a/developer/hosting/runspace03-sample.md +++ b/developer/hosting/runspace03-sample.md @@ -29,7 +29,7 @@ This sample demonstrates the following. - Running the script synchronously. -- Using [System.Management.Automation.Psobject](/dotnet/api/System.Management.Automation.PSObject) objects to extract and display properties from the objects returned by the script. +- Using [System.Management.Automation.PSObject](/dotnet/api/System.Management.Automation.PSObject) objects to extract and display properties from the objects returned by the script. - Retrieving and displaying error records that were generated when the script was run. diff --git a/developer/hosting/runspace04-sample.md b/developer/hosting/runspace04-sample.md index d06e01de91fb..e08cccfb0e85 100644 --- a/developer/hosting/runspace04-sample.md +++ b/developer/hosting/runspace04-sample.md @@ -29,7 +29,7 @@ This sample demonstrates the following. - Invoking the commands synchronously. -- Using [System.Management.Automation.Psobject](/dotnet/api/System.Management.Automation.PSObject) objects to extract and display properties from the objects returned by the commands. +- Using [System.Management.Automation.PSObject](/dotnet/api/System.Management.Automation.PSObject) objects to extract and display properties from the objects returned by the commands. - Retrieving and displaying error records that were generated during the running of the commands. diff --git a/developer/hosting/runspace05-sample.md b/developer/hosting/runspace05-sample.md index dff6b10370e0..c42f0ab48aa4 100644 --- a/developer/hosting/runspace05-sample.md +++ b/developer/hosting/runspace05-sample.md @@ -33,7 +33,7 @@ This sample demonstrates the following. - Running the command synchronously. -- Extracting properties from the [System.Management.Automation.Psobject](/dotnet/api/System.Management.Automation.PSObject) objects returned by the command. +- Extracting properties from the [System.Management.Automation.PSObject](/dotnet/api/System.Management.Automation.PSObject) objects returned by the command. ## Example diff --git a/developer/hosting/runspace06-sample.md b/developer/hosting/runspace06-sample.md index db4473e57c38..d130aa2a6960 100644 --- a/developer/hosting/runspace06-sample.md +++ b/developer/hosting/runspace06-sample.md @@ -33,7 +33,7 @@ This sample demonstrates the following. - Running the command synchronously. -- Extracting properties from the [System.Management.Automation.Psobject](/dotnet/api/System.Management.Automation.PSObject) objects returned by the command. +- Extracting properties from the [System.Management.Automation.PSObject](/dotnet/api/System.Management.Automation.PSObject) objects returned by the command. ## Example diff --git a/developer/hosting/runspace07-sample.md b/developer/hosting/runspace07-sample.md index 8e2e4c4eb4a9..aedbf81aafdc 100644 --- a/developer/hosting/runspace07-sample.md +++ b/developer/hosting/runspace07-sample.md @@ -29,11 +29,11 @@ This sample demonstrates the following. - Running the cmdlets synchronously. -- Extracting properties from the [System.Management.Automation.Psobject](/dotnet/api/System.Management.Automation.PSObject) objects returned by the command. +- Extracting properties from the [System.Management.Automation.PSObject](/dotnet/api/System.Management.Automation.PSObject) objects returned by the command. ## Example -This sample creates a runspace that used by a [System.Management.Automation.Psobject](/dotnet/api/System.Management.Automation.PSObject) object to run the [Get-Process](/powershell/module/Microsoft.PowerShell.Management/Get-Process) and [Measure-Object](/powershell/module/microsoft.powershell.utility/measure-object) cmdlets. +This sample creates a runspace that used by a [System.Management.Automation.PSObject](/dotnet/api/System.Management.Automation.PSObject) object to run the [Get-Process](/powershell/module/Microsoft.PowerShell.Management/Get-Process) and [Measure-Object](/powershell/module/microsoft.powershell.utility/measure-object) cmdlets. ```csharp namespace Microsoft.Samples.PowerShell.Runspaces diff --git a/developer/hosting/runspace08-sample.md b/developer/hosting/runspace08-sample.md index f29ee1116acc..5b7eda318718 100644 --- a/developer/hosting/runspace08-sample.md +++ b/developer/hosting/runspace08-sample.md @@ -29,7 +29,7 @@ This sample demonstrates the following. - Running the cmdlets synchronously. -- Extracting properties from the [System.Management.Automation.Psobject](/dotnet/api/System.Management.Automation.PSObject) objects returned by the command. +- Extracting properties from the [System.Management.Automation.PSObject](/dotnet/api/System.Management.Automation.PSObject) objects returned by the command. ## Example diff --git a/developer/hosting/runspace10-sample.md b/developer/hosting/runspace10-sample.md index 5079d3f5859d..c821a93fd0da 100644 --- a/developer/hosting/runspace10-sample.md +++ b/developer/hosting/runspace10-sample.md @@ -31,7 +31,7 @@ This sample demonstrates the following. - Adding the command to the pipeline of the [System.Management.Automation.Powershell](/dotnet/api/system.management.automation.powershell) object. -- Extracting properties from the [System.Management.Automation.Psobject](/dotnet/api/System.Management.Automation.PSObject) objects returned by the command. +- Extracting properties from the [System.Management.Automation.PSObject](/dotnet/api/System.Management.Automation.PSObject) objects returned by the command. ## Example diff --git a/developer/prog-guide/creating-a-windows-powershell-property-provider.md b/developer/prog-guide/creating-a-windows-powershell-property-provider.md index 69239668b1eb..7031af3df2bb 100644 --- a/developer/prog-guide/creating-a-windows-powershell-property-provider.md +++ b/developer/prog-guide/creating-a-windows-powershell-property-provider.md @@ -60,7 +60,7 @@ The [System.Management.Automation.Provider.Ipropertycmdletprovider](/dotnet/api/ To retrieve properties, the provider must implement the [System.Management.Automation.Provider.Ipropertycmdletprovider.Getproperty*](/dotnet/api/System.Management.Automation.Provider.IPropertyCmdletProvider.GetProperty) method to support calls from the `Get-ItemProperty` cmdlet. This method retrieves the properties of the item located at the specified provider-internal path (fully-qualified). -The `providerSpecificPickList` parameter indicates which properties to retrieve. If this parameter is `null` or empty, the method should retrieve all properties. In addition, [System.Management.Automation.Provider.Ipropertycmdletprovider.Getproperty*](/dotnet/api/System.Management.Automation.Provider.IPropertyCmdletProvider.GetProperty) writes an instance of a [System.Management.Automation.Psobject](/dotnet/api/System.Management.Automation.PSObject) object that represents a property bag of the retrieved properties. The method should return nothing. +The `providerSpecificPickList` parameter indicates which properties to retrieve. If this parameter is `null` or empty, the method should retrieve all properties. In addition, [System.Management.Automation.Provider.Ipropertycmdletprovider.Getproperty*](/dotnet/api/System.Management.Automation.Provider.IPropertyCmdletProvider.GetProperty) writes an instance of a [System.Management.Automation.PSObject](/dotnet/api/System.Management.Automation.PSObject) object that represents a property bag of the retrieved properties. The method should return nothing. It is recommended that the implementation of [System.Management.Automation.Provider.Ipropertycmdletprovider.Getproperty*](/dotnet/api/System.Management.Automation.Provider.IPropertyCmdletProvider.GetProperty) supports the wildcard expansion of property names for each element in the pick list. To do this, use the [System.Management.Automation.Wildcardpattern](/dotnet/api/System.Management.Automation.WildcardPattern) class to perform the wildcard pattern matching. @@ -86,7 +86,7 @@ Here is the default implementation of [System.Management.Automation.Provider.Ipr ## Setting Properties -To set properties, the Windows PowerShell property provider must implement the [System.Management.Automation.Provider.Ipropertycmdletprovider.Setproperty*](/dotnet/api/System.Management.Automation.Provider.IPropertyCmdletProvider.SetProperty) method to support calls from the `Set-ItemProperty` cmdlet. This method sets one or more properties of the item at the specified path, and overwrites the supplied properties as required. [System.Management.Automation.Provider.Ipropertycmdletprovider.Setproperty*](/dotnet/api/System.Management.Automation.Provider.IPropertyCmdletProvider.SetProperty) also writes an instance of a [System.Management.Automation.Psobject](/dotnet/api/System.Management.Automation.PSObject) object that represents a property bag of the updated properties. +To set properties, the Windows PowerShell property provider must implement the [System.Management.Automation.Provider.Ipropertycmdletprovider.Setproperty*](/dotnet/api/System.Management.Automation.Provider.IPropertyCmdletProvider.SetProperty) method to support calls from the `Set-ItemProperty` cmdlet. This method sets one or more properties of the item at the specified path, and overwrites the supplied properties as required. [System.Management.Automation.Provider.Ipropertycmdletprovider.Setproperty*](/dotnet/api/System.Management.Automation.Provider.IPropertyCmdletProvider.SetProperty) also writes an instance of a [System.Management.Automation.PSObject](/dotnet/api/System.Management.Automation.PSObject) object that represents a property bag of the updated properties. Here is the default implementation of [System.Management.Automation.Provider.Ipropertycmdletprovider.Setproperty*](/dotnet/api/System.Management.Automation.Provider.IPropertyCmdletProvider.SetProperty) from the TemplateProvider.cs file provided by Windows PowerShell.