From 1e4937a098fd687f6a6ea040eb72a674be08c196 Mon Sep 17 00:00:00 2001 From: Sean Wheeler Date: Wed, 31 Jan 2024 10:06:27 -0600 Subject: [PATCH 1/4] Change keyword to lowercase --- .../About/about_Functions.md | 4 ++-- .../about_Functions_Advanced_Parameters.md | 23 ++++++++++--------- .../About/about_Script_Blocks.md | 6 ++--- .../docs-conceptual/lang-spec/chapter-08.md | 8 +++---- 4 files changed, 21 insertions(+), 20 deletions(-) diff --git a/reference/7.4/Microsoft.PowerShell.Core/About/about_Functions.md b/reference/7.4/Microsoft.PowerShell.Core/About/about_Functions.md index a202e0e3c53e..bbdc1ed3d324 100644 --- a/reference/7.4/Microsoft.PowerShell.Core/About/about_Functions.md +++ b/reference/7.4/Microsoft.PowerShell.Core/About/about_Functions.md @@ -1,7 +1,7 @@ --- description: Describes how to create and use functions in PowerShell. Locale: en-US -ms.date: 01/20/2023 +ms.date: 01/31/2024 online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_functions?view=powershell-7.4&WT.mc_id=ps-gethelp schema: 2.0.0 title: about Functions @@ -87,7 +87,7 @@ A function includes the following items: - Any number of named parameters (optional) - One or more PowerShell commands enclosed in braces `{}` -For more information about the `Dynamicparam` keyword and dynamic parameters in +For more information about the `dynamicparam` keyword and dynamic parameters in functions, see [about_Functions_Advanced_Parameters][10]. ## Simple functions diff --git a/reference/7.4/Microsoft.PowerShell.Core/About/about_Functions_Advanced_Parameters.md b/reference/7.4/Microsoft.PowerShell.Core/About/about_Functions_Advanced_Parameters.md index 7e524de34698..52deeac701ea 100644 --- a/reference/7.4/Microsoft.PowerShell.Core/About/about_Functions_Advanced_Parameters.md +++ b/reference/7.4/Microsoft.PowerShell.Core/About/about_Functions_Advanced_Parameters.md @@ -1,7 +1,7 @@ --- description: Explains how to add parameters to advanced functions. Locale: en-US -ms.date: 06/22/2023 +ms.date: 01/31/2024 online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_functions_advanced_parameters?view=powershell-7.4&WT.mc_id=ps-gethelp schema: 2.0.0 title: about Functions Advanced Parameters @@ -82,7 +82,7 @@ function Get-Date_Func { } } -[cultureinfo]::CurrentCulture = 'de-DE' +[CultureInfo]::CurrentCulture = 'de-DE' # This German-format date string doesn't work with the invariant culture. # E.g., [datetime] '19-06-2018' breaks. @@ -200,7 +200,7 @@ they can be difficult for users to discover. To find a dynamic parameter, the user must be in the provider path, use the **ArgumentList** parameter of the `Get-Command` cmdlet, or use the **Path** parameter of `Get-Help`. -To create a dynamic parameter for a function or script, use the `DynamicParam` +To create a dynamic parameter for a function or script, use the `dynamicparam` keyword. The syntax is as follows: @@ -222,7 +222,7 @@ function Get-Sample { [CmdletBinding()] param([string]$Name, [string]$Path) - DynamicParam + dynamicparam { if ($Path.StartsWith("HKLM:")) { @@ -246,7 +246,8 @@ function Get-Sample { } ``` -For more information, see the documentation for the [RuntimeDefinedParameter][02] type. +For more information, see the documentation for the +[RuntimeDefinedParameter][02] type. ## Attributes of parameters @@ -739,7 +740,7 @@ For more information, see [about_Functions_Argument_Completion][11]. The **ArgumentCompleter** attribute allows you to add tab completion values to a specific parameter. An **ArgumentCompleter** attribute must be defined for -each parameter that needs tab completion. Like **DynamicParameters**, the +each parameter that needs tab completion. Like **dynamicparameters**, the available values are calculated at runtime when the user presses Tab after the parameter name. @@ -917,10 +918,10 @@ PowerShell generates an error if any value is outside that range. The **ValidateRangeKind** enum allows for the following values: -- **Positive** - A number greater than zero. -- **Negative** - A number less than zero. -- **NonPositive** - A number less than or equal to zero. -- **NonNegative** - A number greater than or equal to zero. +- `Positive` - A number greater than zero. +- `Negative` - A number less than zero. +- `NonPositive` - A number less than or equal to zero. +- `NonNegative` - A number greater than or equal to zero. In the following example, the value of the **Attempts** parameter must be between zero and ten. @@ -1273,7 +1274,7 @@ intended for external usage. - [about_Functions_OutputTypeAttribute][13] -[01]: ./about_comment_based_help.md +[01]: about_comment_based_help.md [02]: /dotnet/api/system.management.automation.runtimedefinedparameter [03]: /dotnet/standard/base-types/composite-formatting#composite-format-string [04]: /dotnet/standard/base-types/composite-formatting#format-string-component diff --git a/reference/7.4/Microsoft.PowerShell.Core/About/about_Script_Blocks.md b/reference/7.4/Microsoft.PowerShell.Core/About/about_Script_Blocks.md index 1728f7c602ef..198b6339e72a 100644 --- a/reference/7.4/Microsoft.PowerShell.Core/About/about_Script_Blocks.md +++ b/reference/7.4/Microsoft.PowerShell.Core/About/about_Script_Blocks.md @@ -1,7 +1,7 @@ --- description: Defines what a script block is and explains how to use script blocks in the PowerShell programming language. Locale: en-US -ms.date: 11/28/2023 +ms.date: 01/31/2024 online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_script_blocks?view=powershell-7.4&WT.mc_id=ps-gethelp schema: 2.0.0 title: about Script Blocks @@ -50,8 +50,8 @@ keyword to assign named parameters, as shown in the following syntax: > In a script block, unlike a function, you can't specify parameters outside > the braces. -Like functions, script blocks can include the `DynamicParam`, `Begin`, -`Process`, and `End` keywords. For more information, see [about_Functions][02] +Like functions, script blocks can include the `dynamicparam`, `begin`, +`process`, and `end` keywords. For more information, see [about_Functions][02] and [about_Functions_Advanced][01]. ## Using Script Blocks diff --git a/reference/docs-conceptual/lang-spec/chapter-08.md b/reference/docs-conceptual/lang-spec/chapter-08.md index d016a95c3ad9..17dce2f960b7 100644 --- a/reference/docs-conceptual/lang-spec/chapter-08.md +++ b/reference/docs-conceptual/lang-spec/chapter-08.md @@ -1436,11 +1436,11 @@ as there is no current collection object. The statements in an *end block* (i.e.; one marked with the keyword end) are executed once, after the last pipeline object has been delivered. -### 8.10.8 dynamicParam block +### 8.10.8 dynamicparam block The subsections of [§8.10][§8.10] thus far deal with *static parameters*, which are defined as part of -the source code. It is also possible to define *dynamic parameters* via a *dynamicParam block*, -another form of named block ([§8.10.7][§8.10.7]), which is marked with the keyword `dynamicParam`. Much of +the source code. It is also possible to define *dynamic parameters* via a *dynamicparam block*, +another form of named block ([§8.10.7][§8.10.7]), which is marked with the keyword `dynamicparam`. Much of this machinery is implementation defined. Dynamic parameters are parameters of a cmdlet, function, filter, or script that are available under @@ -1461,7 +1461,7 @@ registry drive. ```powershell function Sample { Param ([String]$Name, [String]$Path) - DynamicParam { + dynamicparam { if ($path -match "*HKLM*:") { $dynParam1 = New-Object System.Management.Automation.RuntimeDefinedParameter("dp1", [Int32], $attributeCollection) From 5999c91ec506278a6ad5eaf04b23ea34409c7f0f Mon Sep 17 00:00:00 2001 From: Sean Wheeler Date: Wed, 31 Jan 2024 10:06:40 -0600 Subject: [PATCH 2/4] Fix formatting --- .../cmdlet/cmdlet-dynamic-parameters.md | 26 +- .../how-to-declare-dynamic-parameters.md | 37 +- ...mic-parameters-to-a-provider-help-topic.md | 4 +- .../provider-cmdlet-dynamic-parameters.md | 191 +++++--- .../developer/provider/provider-cmdlets.md | 296 +++++++---- .../developer/provider/provider-types.md | 461 +++++++++--------- 6 files changed, 573 insertions(+), 442 deletions(-) diff --git a/reference/docs-conceptual/developer/cmdlet/cmdlet-dynamic-parameters.md b/reference/docs-conceptual/developer/cmdlet/cmdlet-dynamic-parameters.md index d462cc4d7a89..22f1173dad71 100644 --- a/reference/docs-conceptual/developer/cmdlet/cmdlet-dynamic-parameters.md +++ b/reference/docs-conceptual/developer/cmdlet/cmdlet-dynamic-parameters.md @@ -58,8 +58,8 @@ To support dynamic parameters, the following elements must be included in the cm ### Interface -[System.Management.Automation.IDynamicParameters](/dotnet/api/System.Management.Automation.IDynamicParameters). -This interface provides the method that retrieves the dynamic parameters. +[System.Management.Automation.IDynamicParameters][03]. This interface provides the method that +retrieves the dynamic parameters. For example: @@ -67,8 +67,8 @@ For example: ### Method -[System.Management.Automation.IDynamicParameters.GetDynamicParameters](/dotnet/api/System.Management.Automation.IDynamicParameters.GetDynamicParameters). -This method retrieves the object that contains the dynamic parameter definitions. +[System.Management.Automation.IDynamicParameters.GetDynamicParameters][04]. This method retrieves +the object that contains the dynamic parameter definitions. For example: @@ -107,14 +107,18 @@ public class SendGreetingCommandDynamicParameters } ``` -For a complete example of a cmdlet that supports dynamic parameters, see [How to Declare Dynamic Parameters](./how-to-declare-dynamic-parameters.md). +For a complete example of a cmdlet that supports dynamic parameters, see +[How to Declare Dynamic Parameters][01]. ## See also -[System.Management.Automation.IDynamicParameters](/dotnet/api/System.Management.Automation.IDynamicParameters) +- [System.Management.Automation.IDynamicParameters][03] +- [System.Management.Automation.IDynamicParameters.GetDynamicParameters][04] +- [How to Declare Dynamic Parameters][01] +- [Writing a Windows PowerShell Cmdlet][02] -[System.Management.Automation.IDynamicParameters.GetDynamicParameters](/dotnet/api/System.Management.Automation.IDynamicParameters.GetDynamicParameters) - -[How to Declare Dynamic Parameters](./how-to-declare-dynamic-parameters.md) - -[Writing a Windows PowerShell Cmdlet](./writing-a-windows-powershell-cmdlet.md) + +[01]: ./how-to-declare-dynamic-parameters.md +[02]: ./writing-a-windows-powershell-cmdlet.md +[03]: /dotnet/api/System.Management.Automation.IDynamicParameters +[04]: /dotnet/api/System.Management.Automation.IDynamicParameters.GetDynamicParameters diff --git a/reference/docs-conceptual/developer/cmdlet/how-to-declare-dynamic-parameters.md b/reference/docs-conceptual/developer/cmdlet/how-to-declare-dynamic-parameters.md index 1909656b5fea..5893939cee09 100644 --- a/reference/docs-conceptual/developer/cmdlet/how-to-declare-dynamic-parameters.md +++ b/reference/docs-conceptual/developer/cmdlet/how-to-declare-dynamic-parameters.md @@ -6,17 +6,23 @@ title: How to Declare Dynamic Parameters --- # How to Declare Dynamic Parameters -This example shows how to define dynamic parameters that are added to the cmdlet at runtime. In this example, the `Department` parameter is added to the cmdlet whenever the user specifies the `Employee` switch parameter. For more information about dynamic parameters, see [Cmdlet Dynamic Parameters](./cmdlet-dynamic-parameters.md). +This example shows how to define dynamic parameters that are added to the cmdlet at runtime. In this +example, the `Department` parameter is added to the cmdlet whenever the user specifies the +`Employee` switch parameter. For more information about dynamic parameters, see +[Cmdlet Dynamic Parameters][02]. ## To define dynamic parameters -1. In the cmdlet class declaration, add the [System.Management.Automation.Idynamicparameters](/dotnet/api/System.Management.Automation.IDynamicParameters) interface as shown. +1. In the cmdlet class declaration, add the [System.Management.Automation.Idynamicparameters][03] + interface as shown. ```csharp public class SendGreetingCommand : Cmdlet, IDynamicParameters ``` -2. Call the [System.Management.Automation.Idynamicparameters.Getdynamicparameters*](/dotnet/api/System.Management.Automation.IDynamicParameters.GetDynamicParameters) method, which returns the object in which the dynamic parameters are defined. In this example, the method is called when the `Employee` parameter is specified. +1. Call the [System.Management.Automation.Idynamicparameters.Getdynamicparameters*][04] method, + which returns the object in which the dynamic parameters are defined. In this example, the method + is called when the `Employee` parameter is specified. ```csharp public object GetDynamicParameters() @@ -31,7 +37,8 @@ This example shows how to define dynamic parameters that are added to the cmdlet private SendGreetingCommandDynamicParameters context; ``` -3. Declare a class that defines the dynamic parameters to be added. You can use the attributes that you used to declare the static cmdlet parameters to declare the dynamic parameters. +1. Declare a class that defines the dynamic parameters to be added. You can use the attributes that + you used to declare the static cmdlet parameters to declare the dynamic parameters. ```csharp public class SendGreetingCommandDynamicParameters @@ -49,7 +56,9 @@ This example shows how to define dynamic parameters that are added to the cmdlet ## Example -In this example, the `Department` parameter is added whenever the user specifies the `Employee` parameter. The `Department` parameter is an optional parameter, and the ValidateSet attribute is used to specify the allowed arguments. +In this example, the `Department` parameter is added whenever the user specifies the `Employee` +parameter. The `Department` parameter is an optional parameter, and the ValidateSet attribute is +used to specify the allowed arguments. ```csharp using System; @@ -126,10 +135,14 @@ namespace SendGreeting ## See Also -[System.Management.Automation.Runtimedefinedparameterdictionary](/dotnet/api/System.Management.Automation.RuntimeDefinedParameterDictionary) - -[System.Management.Automation.Idynamicparameters.Getdynamicparameters*](/dotnet/api/System.Management.Automation.IDynamicParameters.GetDynamicParameters) - -[Cmdlet Dynamic Parameters](./cmdlet-dynamic-parameters.md) - -[Windows PowerShell SDK](../windows-powershell-reference.md) +- [System.Management.Automation.RuntimeDefinedParameterDictionary][05] +- [System.Management.Automation.IDynamicParameters.GetDynamicParameters*][04] +- [Cmdlet Dynamic Parameters][02] +- [Windows PowerShell SDK][01] + + +[01]: ../windows-powershell-reference.md +[02]: cmdlet-dynamic-parameters.md +[03]: xref:System.Management.Automation.IDynamicParameters +[04]: xref:System.Management.Automation.IDynamicParameters.GetDynamicParameters +[05]: xref:System.Management.Automation.RuntimeDefinedParameterDictionary diff --git a/reference/docs-conceptual/developer/help/how-to-add-dynamic-parameters-to-a-provider-help-topic.md b/reference/docs-conceptual/developer/help/how-to-add-dynamic-parameters-to-a-provider-help-topic.md index 78af8f4527a1..a874fe6be81d 100644 --- a/reference/docs-conceptual/developer/help/how-to-add-dynamic-parameters-to-a-provider-help-topic.md +++ b/reference/docs-conceptual/developer/help/how-to-add-dynamic-parameters-to-a-provider-help-topic.md @@ -180,5 +180,5 @@ The following example shows the `DynamicParameters` element of the `Encoding` dy ``` -[01]: ./how-to-add-parameter-information.md -[02]: /dotnet/api/microsoft.powershell.commands.filesystemcmdletproviderencoding +[01]: how-to-add-parameter-information.md +[02]: xref:Microsoft.PowerShell.Commands.FileSystemCmdletProviderEncoding diff --git a/reference/docs-conceptual/developer/provider/provider-cmdlet-dynamic-parameters.md b/reference/docs-conceptual/developer/provider/provider-cmdlet-dynamic-parameters.md index 100a875fd900..39323368019e 100644 --- a/reference/docs-conceptual/developer/provider/provider-cmdlet-dynamic-parameters.md +++ b/reference/docs-conceptual/developer/provider/provider-cmdlet-dynamic-parameters.md @@ -6,11 +6,20 @@ title: Provider cmdlet dynamic parameters --- # Provider cmdlet dynamic parameters -Providers can define dynamic parameters that are added to a provider cmdlet when the user specifies a certain value for one of the static parameters of the cmdlet. For example, a provider can add different dynamic parameters based on what path the user specifies when they call the `Get-Item` or `Set-Item` provider cmdlets. +Providers can define dynamic parameters that are added to a provider cmdlet when the user specifies +a certain value for one of the static parameters of the cmdlet. For example, a provider can add +different dynamic parameters based on what path the user specifies when they call the `Get-Item` or +`Set-Item` provider cmdlets. ## Dynamic Parameter Methods -Dynamic parameters are defined by implementing one of the dynamic parameter methods, such as the [System.Management.Automation.Provider.Itemcmdletprovider.Getitemdynamicparameters*](/dotnet/api/System.Management.Automation.Provider.ItemCmdletProvider.GetItemDynamicParameters) and [System.Management.Automation.Provider.Itemcmdletprovider.Setitemdynamicparameters*](/dotnet/api/System.Management.Automation.Provider.ItemCmdletProvider.SetItemDynamicParameters)s methods. These methods return an object that has public properties that are decorated with attributes similar to those of stand-alone cmdlets. Here is an example of an implementation of the [System.Management.Automation.Provider.Itemcmdletprovider.Getitemdynamicparameters*](/dotnet/api/System.Management.Automation.Provider.ItemCmdletProvider.GetItemDynamicParameters) method taken from the Certificate provider: +Dynamic parameters are defined by implementing one of the dynamic parameter methods, such as the +[System.Management.Automation.Provider.ItemCmdletProvider.GetItemDynamicParameters*][19] and +[System.Management.Automation.Provider.SetItemDynamicParameters.SetItemDynamicParameters*][21] +methods. These methods return an object that has public properties that are decorated with +attributes similar to those of stand-alone cmdlets. Here is an example of an implementation of the +[System.Management.Automation.Provider.ItemCmdletProvider.GetItemDynamicParameters*][19] method +taken from the Certificate provider: ```csharp protected override object GetItemDynamicParameters(string path) @@ -19,7 +28,9 @@ protected override object GetItemDynamicParameters(string path) } ``` -Unlike the static parameters of provider cmdlets, you can specify the characteristics of these parameters in the same way that parameters are defined in stand-alone cmdlets. Here is an example of a dynamic parameter class taken from the Certificate provider: +Unlike the static parameters of provider cmdlets, you can specify the characteristics of these +parameters in the same way that parameters are defined in stand-alone cmdlets. Here is an example of +a dynamic parameter class taken from the Certificate provider: ```csharp internal sealed class CertificateProviderDynamicParameters @@ -54,69 +65,117 @@ internal sealed class CertificateProviderDynamicParameters Here is a list of the static parameters that can be used to add dynamic parameters. -`Clear-Content` cmdlet -You can define dynamic parameters that are triggered by the `Path` parameter of the Clear-Clear cmdlet by implementing the [System.Management.Automation.Provider.Icontentcmdletprovider.Clearcontentdynamicparameters*](/dotnet/api/System.Management.Automation.Provider.IContentCmdletProvider.ClearContentDynamicParameters) method. - -`Clear-Item` cmdlet -You can define dynamic parameters that are triggered by the `Path` parameter of the `Clear-Item` cmdlet by implementing the [System.Management.Automation.Provider.Itemcmdletprovider.Clearitemdynamicparameters*](/dotnet/api/System.Management.Automation.Provider.ItemCmdletProvider.ClearItemDynamicParameters) method. - -`Clear-ItemProperty` cmdlet -You can define dynamic parameters that are triggered by the `Path` parameter of the `Clear-ItemProperty` cmdlet by implementing the [System.Management.Automation.Provider.Ipropertycmdletprovider.Clearpropertydynamicparameters*](/dotnet/api/System.Management.Automation.Provider.IPropertyCmdletProvider.ClearPropertyDynamicParameters) method. - -`Copy-Item` cmdlet -You can define dynamic parameters that are triggered by the `Path`, `Destination`, and `Recurse` parameters of the `Copy-Item` cmdlet by implementing the [System.Management.Automation.Provider.Containercmdletprovider.Copyitemdynamicparameters*](/dotnet/api/System.Management.Automation.Provider.ContainerCmdletProvider.CopyItemDynamicParameters) method. - -Get-ChildItems cmdlet -You can define dynamic parameters that are triggered by the `Path` and `Recurse` parameters of the `Get-ChildItem` cmdlet by implementing the [System.Management.Automation.Provider.Containercmdletprovider.Getchilditemsdynamicparameters*](/dotnet/api/System.Management.Automation.Provider.ContainerCmdletProvider.GetChildItemsDynamicParameters) and [System.Management.Automation.Provider.Containercmdletprovider.Getchildnamesdynamicparameters*](/dotnet/api/System.Management.Automation.Provider.ContainerCmdletProvider.GetChildNamesDynamicParameters) methods. - -`Get-Content` cmdlet -You can define dynamic parameters that are triggered by the `Path` parameter of the `Get-Content` cmdlet by implementing the [System.Management.Automation.Provider.Icontentcmdletprovider.Getcontentreaderdynamicparameters*](/dotnet/api/System.Management.Automation.Provider.IContentCmdletProvider.GetContentReaderDynamicParameters) method. - -`Get-Item` cmdlet -You can define dynamic parameters that are triggered by the `Path` parameter of the `Get-Item` cmdlet by implementing the [System.Management.Automation.Provider.Itemcmdletprovider.Getitemdynamicparameters*](/dotnet/api/System.Management.Automation.Provider.ItemCmdletProvider.GetItemDynamicParameters) method. - -`Get-ItemProperty` cmdlet -You can define dynamic parameters that are triggered by the `Path` and `Name` parameters of the `Get-ItemProperty` cmdlet by implementing the [System.Management.Automation.Provider.Ipropertycmdletprovider.Getpropertydynamicparameters*](/dotnet/api/System.Management.Automation.Provider.IPropertyCmdletProvider.GetPropertyDynamicParameters) method. - -`Invoke-Item` cmdlet -You can define dynamic parameters that are triggered by the `Path` parameter of the `Invoke-Item` cmdlet by implementing the [System.Management.Automation.Provider.Itemcmdletprovider.Invokedefaultactiondynamicparameters*](/dotnet/api/System.Management.Automation.Provider.ItemCmdletProvider.InvokeDefaultActionDynamicParameters) method. - -`Move-Item` cmdlet -You can define dynamic parameters that are triggered by the `Path` and `Destination` parameters of the `Move-Item` cmdlet by implementing the [System.Management.Automation.Provider.Navigationcmdletprovider.Moveitemdynamicparameters*](/dotnet/api/System.Management.Automation.Provider.NavigationCmdletProvider.MoveItemDynamicParameters) method. - -`New-Item` cmdlet -You can define dynamic parameters that are triggered by the `Path`, `ItemType`, and `Value` parameters of the `New-Item` cmdlet by implementing the [System.Management.Automation.Provider.Containercmdletprovider.Newitemdynamicparameters*](/dotnet/api/System.Management.Automation.Provider.ContainerCmdletProvider.NewItemDynamicParameters) method. - -`New-ItemProperty` cmdlet -You can define dynamic parameters that are triggered by the `Path`, `Name`, `PropertyType`, and `Value` parameters of the `New-ItemProperty` cmdlet by implementing the [System.Management.Automation.Provider.Idynamicpropertycmdletprovider.Newpropertydynamicparameters*](/dotnet/api/System.Management.Automation.Provider.IDynamicPropertyCmdletProvider.NewPropertyDynamicParameters) method. - -`New-PSDrive` cmdlet -You can define dynamic parameters that are triggered by the [System.Management.Automation.PSDriveinfo](/dotnet/api/System.Management.Automation.PSDriveInfo) object returned by the `New-PSDrive` cmdlet by implementing the [System.Management.Automation.Provider.Drivecmdletprovider.Newdrivedynamicparameters*](/dotnet/api/System.Management.Automation.Provider.DriveCmdletProvider.NewDriveDynamicParameters) method. - -`Remove-Item` -You can define dynamic parameters that are triggered by the `Path` and `Recurse` parameters of the `Remove-Item` cmdlet by implementing the [System.Management.Automation.Provider.Containercmdletprovider.Removeitemdynamicparameters*](/dotnet/api/System.Management.Automation.Provider.ContainerCmdletProvider.RemoveItemDynamicParameters) method. - -`Remove-ItemProperty` -You can define dynamic parameters that are triggered by the `Path` and `Name` parameters of the `Remove-ItemProperty` cmdlet by implementing the [System.Management.Automation.Provider.Idynamicpropertycmdletprovider.Removepropertydynamicparameters*](/dotnet/api/System.Management.Automation.Provider.IDynamicPropertyCmdletProvider.RemovePropertyDynamicParameters) method. - -`Rename-Item` cmdlet -You can define dynamic parameters that are triggered by the `Path` and `NewName` parameters of the `Rename-Item` cmdlet by implementing the [System.Management.Automation.Provider.Containercmdletprovider.Renameitemdynamicparameters*](/dotnet/api/System.Management.Automation.Provider.ContainerCmdletProvider.RenameItemDynamicParameters) method. - -`Rename-ItemProperty` -You can define dynamic parameters that are triggered by the `Path`, `Name`, and `NewName` parameters of the `Rename-ItemProperty` cmdlet by implementing the [System.Management.Automation.Provider.Idynamicpropertycmdletprovider.Renamepropertydynamicparameters*](/dotnet/api/System.Management.Automation.Provider.IDynamicPropertyCmdletProvider.RenamePropertyDynamicParameters) method. - -`Set-Content` cmdlet -You can define dynamic parameters that are triggered by the `Path` parameter of the `Set-Content` cmdlet by implementing the [System.Management.Automation.Provider.Icontentcmdletprovider.Getcontentwriterdynamicparameters*](/dotnet/api/System.Management.Automation.Provider.IContentCmdletProvider.GetContentWriterDynamicParameters) method. - -`Set-Item` cmdlet -You can define dynamic parameters that are triggered by the `Path` and `Value` parameters of the `Set-Item` cmdlet by implementing the [System.Management.Automation.Provider.Itemcmdletprovider.Setitemdynamicparameters*](/dotnet/api/System.Management.Automation.Provider.ItemCmdletProvider.SetItemDynamicParameters) method. - -`Set-ItemProperty` cmdlet -You can define dynamic parameters that are triggered by the `Path` and `Value` parameters of the `Set-Item` cmdlet by implementing the [System.Management.Automation.Provider.Ipropertycmdletprovider.Setpropertydynamicparameters*](/dotnet/api/System.Management.Automation.Provider.IPropertyCmdletProvider.SetPropertyDynamicParameters) method. - -`Test-Path` cmdlet -You can define dynamic parameters that are triggered by the `Path` parameter of the `Test-Path` cmdlet by implementing the [System.Management.Automation.Provider.Itemcmdletprovider.Invokedefaultactiondynamicparameters*](/dotnet/api/System.Management.Automation.Provider.ItemCmdletProvider.InvokeDefaultActionDynamicParameters) method. +- `Clear-Content` cmdlet - You can define dynamic parameters that are triggered by the `Path` + parameter of the Clear-Clear cmdlet by implementing the + [System.Management.Automation.Provider.IContentCmdletProvider.ClearContentDynamicParameters*][09] + method. +- `Clear-Item` cmdlet - You can define dynamic parameters that are triggered by the `Path` parameter + of the `Clear-Item` cmdlet by implementing the + [System.Management.Automation.Provider.ItemCmdletProvider.ClearItemDynamicParameters*][18] method. +- `Clear-ItemProperty` cmdlet - You can define dynamic parameters that are triggered by the `Path` + parameter of the `Clear-ItemProperty` cmdlet by implementing the + [System.Management.Automation.Provider.IPropertyCmdletProvider.ClearPropertyDynamicParameters*][15] + method. +- `Copy-Item` cmdlet - You can define dynamic parameters that are triggered by the `Path`, + `Destination`, and `Recurse` parameters of the `Copy-Item` cmdlet by implementing the + [System.Management.Automation.Provider.ContainerCmdletProvider.CopyItemDynamicParameters*][02] + method. +- `Get-ChildItem` cmdlet - You can define dynamic parameters that are triggered by the `Path` and + `Recurse` parameters of the `Get-ChildItem` cmdlet by implementing the + [System.Management.Automation.Provider.ContainerCmdletProvider.GetChildItemsDynamicParameters*][03] + and + [System.Management.Automation.Provider.ContainerCmdletProvider.GetChildNamesDynamicParameters*][04] + methods. +- `Get-Content` cmdlet - You can define dynamic parameters that are triggered by the `Path` + parameter of the `Get-Content` cmdlet by implementing the + [System.Management.Automation.Provider.IContentCmdletProvider.GetContentReaderDynamicParameters*][10] + method. +- `Get-Item` cmdlet - You can define dynamic parameters that are triggered by the `Path` parameter + of the `Get-Item` cmdlet by implementing the + [System.Management.Automation.Provider.ItemCmdletProvider.GetItemDynamicParameters*][19] method. +- `Get-ItemProperty` cmdlet - You can define dynamic parameters that are triggered by the `Path` and + `Name` parameters of the `Get-ItemProperty` cmdlet by implementing the + [System.Management.Automation.Provider.IPropertyCmdletProvider.GetPropertyDynamicParameters*][16] + method. +- `Invoke-Item` cmdlet - You can define dynamic parameters that are triggered by the `Path` + parameter of the `Invoke-Item` cmdlet by implementing the + [System.Management.Automation.Provider.ItemCmdletProvider.InvokeDefaultActionDynamicParameters*][20] + method. +- `Move-Item` cmdlet - You can define dynamic parameters that are triggered by the `Path` and + `Destination` parameters of the `Move-Item` cmdlet by implementing the + [System.Management.Automation.Provider.NavigationCmdletProvider.MoveItemDynamicParameters*][22] + method. +- `New-Item` cmdlet - You can define dynamic parameters that are triggered by the `Path`, + `ItemType`, and `Value` parameters of the `New-Item` cmdlet by implementing the + [System.Management.Automation.Provider.ContainerCmdletProvider.NewItemDynamicParameters*][05] + method. +- `New-ItemProperty` cmdlet - You can define dynamic parameters that are triggered by the `Path`, + `Name`, `PropertyType`, and `Value` parameters of the `New-ItemProperty` cmdlet by implementing + the + [System.Management.Automation.Provider.IDynamicPropertyCmdletProvider.NewPropertyDynamicParameters*][12] + method. +- `New-PSDrive` cmdlet - You can define dynamic parameters that are triggered by the + [System.Management.Automation.PSDriveInfo][23] object returned by the `New-PSDrive` cmdlet by + implementing the + [System.Management.Automation.Provider.DriveCmdletProvider.NewDriveDynamicParameters*][08] method. +- `Remove-Item` cmdlet - You can define dynamic parameters that are triggered by the `Path` and + `Recurse` parameters of the `Remove-Item` cmdlet by implementing the + [System.Management.Automation.Provider.Containercmdletprovider.Removeitemdynamicparameters*][06] + method. +- `Remove-ItemProperty` cmdlet - You can define dynamic parameters that are triggered by the `Path` + and `Name` parameters of the `Remove-ItemProperty` cmdlet by implementing the + [System.Management.Automation.Provider.IDynamicPropertyCmdletProvider.RemovePropertyDynamicParameters*][13] + method. +- `Rename-Item` cmdlet - You can define dynamic parameters that are triggered by the `Path` and + `NewName` parameters of the `Rename-Item` cmdlet by implementing the + [System.Management.Automation.Provider.Containercmdletprovider.Renameitemdynamicparameters*][07] + method. +- `Rename-ItemProperty` - You can define dynamic parameters that are triggered by the `Path`, + `Name`, and `NewName` parameters of the `Rename-ItemProperty` cmdlet by implementing the + [System.Management.Automation.Provider.IDynamicPropertyCmdletProvider.RenamePropertyDynamicParameters*][14] + method. +- `Set-Content` cmdlet - You can define dynamic parameters that are triggered by the `Path` + parameter of the `Set-Content` cmdlet by implementing the + [System.Management.Automation.Provider.IContentCmdletProvider.GetContentWriterDynamicParameters*][11] + method. +- `Set-Item` cmdlet - You can define dynamic parameters that are triggered by the `Path` and `Value` + parameters of the `Set-Item` cmdlet by implementing the + [System.Management.Automation.Provider.ItemCmdletProvider.SetItemDynamicParameters*][21] method. + +- `Set-ItemProperty` cmdlet - You can define dynamic parameters that are triggered by the `Path` and + `Value` parameters of the `Set-Item` cmdlet by implementing the + [System.Management.Automation.Provider.IPropertyCmdletProvider.SetPropertyDynamicParameters*][17] + method. +- `Test-Path` cmdlet - You can define dynamic parameters that are triggered by the `Path` parameter + of the `Test-Path` cmdlet by implementing the + [System.Management.Automation.Provider.ItemCmdletProvider.InvokeDefaultActionDynamicParameters*][20] + method. ## See Also -[Writing a Windows PowerShell Provider](./writing-a-windows-powershell-provider.md) +[Writing a Windows PowerShell Provider][01] + + +[01]: writing-a-windows-powershell-provider.md +[02]: xref:System.Management.Automation.Provider.ContainerCmdletProvider.CopyItemDynamicParameters +[03]: xref:System.Management.Automation.Provider.ContainerCmdletProvider.GetChildItemsDynamicParameters +[04]: xref:System.Management.Automation.Provider.ContainerCmdletProvider.GetChildNamesDynamicParameters +[05]: xref:System.Management.Automation.Provider.ContainerCmdletProvider.NewItemDynamicParameters +[06]: xref:System.Management.Automation.Provider.ContainerCmdletProvider.RemoveItemDynamicParameters +[07]: xref:System.Management.Automation.Provider.ContainerCmdletProvider.RenameItemDynamicParameters +[08]: xref:System.Management.Automation.Provider.DriveCmdletProvider.NewDriveDynamicParameters +[09]: xref:System.Management.Automation.Provider.IContentCmdletProvider.ClearContentDynamicParameters +[10]: xref:System.Management.Automation.Provider.IContentCmdletProvider.GetContentReaderDynamicParameters +[11]: xref:System.Management.Automation.Provider.IContentCmdletProvider.GetContentWriterDynamicParameters +[12]: xref:System.Management.Automation.Provider.IDynamicPropertyCmdletProvider.NewPropertyDynamicParameters +[13]: xref:System.Management.Automation.Provider.IDynamicPropertyCmdletProvider.RemovePropertyDynamicParameters +[14]: xref:System.Management.Automation.Provider.IDynamicPropertyCmdletProvider.RenamePropertyDynamicParameters +[15]: xref:System.Management.Automation.Provider.IPropertyCmdletProvider.ClearPropertyDynamicParameters +[16]: xref:System.Management.Automation.Provider.IPropertyCmdletProvider.GetPropertyDynamicParameters +[17]: xref:System.Management.Automation.Provider.IPropertyCmdletProvider.SetPropertyDynamicParameters +[18]: xref:System.Management.Automation.Provider.ItemCmdletProvider.ClearItemDynamicParameters +[19]: xref:System.Management.Automation.Provider.ItemCmdletProvider.GetItemDynamicParameters +[20]: xref:System.Management.Automation.Provider.ItemCmdletProvider.InvokeDefaultActionDynamicParameters +[21]: xref:System.Management.Automation.Provider.ItemCmdletProvider.SetItemDynamicParameters +[22]: xref:System.Management.Automation.Provider.NavigationCmdletProvider.MoveItemDynamicParameters +[23]: xref:System.Management.Automation.PSDriveInfo diff --git a/reference/docs-conceptual/developer/provider/provider-cmdlets.md b/reference/docs-conceptual/developer/provider/provider-cmdlets.md index 91b509be5ee4..db608354772d 100644 --- a/reference/docs-conceptual/developer/provider/provider-cmdlets.md +++ b/reference/docs-conceptual/developer/provider/provider-cmdlets.md @@ -6,8 +6,9 @@ title: Provider cmdlets --- # Provider cmdlets -The cmdlets that the user can run to manage a data store are referred to as provider cmdlets. -To support these cmdlets, you need to overwrite some of the methods defined by the base provider classes and interfaces. +The cmdlets that the user can run to manage a data store are referred to as provider cmdlets. To +support these cmdlets, you need to overwrite some of the methods defined by the base provider +classes and interfaces. Here are the provider cmdlets that can be run by the user: @@ -15,70 +16,77 @@ Here are the provider cmdlets that can be run by the user: ### `Get-PSDrive` -This cmdlet returns the PowerShell drives in the current session. -You do not need to overwrite any methods to support this cmdlet. +This cmdlet returns the PowerShell drives in the current session. You do not need to overwrite any +methods to support this cmdlet. ### `New-PSDrive` -This cmdlet allows the user to create PowerShell drives to access the data store. -To support this cmdlet, overwrite the following methods of [System.Management.Automation.Provider.DriveCmdletProvider](/dotnet/api/System.Management.Automation.Provider.DriveCmdletProvider) class: +This cmdlet allows the user to create PowerShell drives to access the data store. To support this +cmdlet, overwrite the following methods of +[System.Management.Automation.Provider.DriveCmdletProvider][12] class: -- [Newdrive](/dotnet/api/System.Management.Automation.Provider.DriveCmdletProvider.NewDrive) -- [NewDriveDynamicParameters](/dotnet/api/System.Management.Automation.Provider.DriveCmdletProvider.NewDriveDynamicParameters) +- [Newdrive][13] +- [NewDriveDynamicParameters][14] ### `Remove-PSDrive` -This cmdlet allows the user to remove PowerShell drives that access the data store. -To support this cmdlet, overwrite the [System.Management.Automation.Provider.DriveCmdletProvider.Removedrive](/dotnet/api/System.Management.Automation.Provider.DriveCmdletProvider.RemoveDrive) method. +This cmdlet allows the user to remove PowerShell drives that access the data store. To support this +cmdlet, overwrite the [System.Management.Automation.Provider.DriveCmdletProvider.Removedrive][15] +method. ## Item cmdlets ### `Clear-Item` -This cmdlet allows the user to remove the value of an item in the data store. -To support this cmdlet, overwrite the following methods of [System.Management.Automation.Provider.ItemCmdletProvider](/dotnet/api/System.Management.Automation.Provider.ItemCmdletProvider) class: +This cmdlet allows the user to remove the value of an item in the data store. To support this +cmdlet, overwrite the following methods of +[System.Management.Automation.Provider.ItemCmdletProvider][43] class: -- [Clearitem](/dotnet/api/System.Management.Automation.Provider.ItemCmdletProvider.ClearItem) -- [ClearItemDynamicParameters](/dotnet/api/System.Management.Automation.Provider.ItemCmdletProvider.ClearItemDynamicParameters) +- [Clearitem][44] +- [ClearItemDynamicParameters][45] ### `Copy-Item` -This cmdlet allows the user to copy an item from one location to another. -To support this cmdlet, overwrite the following methods of [System.Management.Automation.Provider.ContainerCmdletProvider](/dotnet/api/System.Management.Automation.Provider.ContainerCmdletProvider) class: +This cmdlet allows the user to copy an item from one location to another. To support this cmdlet, +overwrite the following methods of +[System.Management.Automation.Provider.ContainerCmdletProvider][01] class: -- [Copyitem](/dotnet/api/System.Management.Automation.Provider.ContainerCmdletProvider.CopyItem) -- [CopyItemDynamicParameters](/dotnet/api/System.Management.Automation.Provider.ContainerCmdletProvider.CopyItemDynamicParameters) +- [Copyitem][02] +- [CopyItemDynamicParameters][03] ### `Get-Item` -This cmdlet allows the user to retrieve data from the data store. -To support this cmdlet, overwrite the following methods of [System.Management.Automation.Provider.ItemCmdletProvider](/dotnet/api/System.Management.Automation.Provider.ItemCmdletProvider) class: +This cmdlet allows the user to retrieve data from the data store. To support this cmdlet, overwrite +the following methods of [System.Management.Automation.Provider.ItemCmdletProvider][43] class: -- [Getitem](/dotnet/api/System.Management.Automation.Provider.ItemCmdletProvider.GetItem) -- [GetItemDynamicParameters](/dotnet/api/System.Management.Automation.Provider.ItemCmdletProvider.GetItemDynamicParameters) +- [Getitem][46] +- [GetItemDynamicParameters][47] ### `Get-ChildItem` -This cmdlet allows the user to retrieve the child items of the parent item. -To support this cmdlet, overwrite the following methods of [System.Management.Automation.Provider.ContainerCmdletProvider](/dotnet/api/System.Management.Automation.Provider.ContainerCmdletProvider) class: +This cmdlet allows the user to retrieve the child items of the parent item. To support this cmdlet, +overwrite the following methods of +[System.Management.Automation.Provider.ContainerCmdletProvider][01] class: -- [GetChildItems](/dotnet/api/System.Management.Automation.Provider.ContainerCmdletProvider.GetChildItems) -- [GetChildItemsDynamicParameters](/dotnet/api/System.Management.Automation.Provider.ContainerCmdletProvider.GetChildItemsDynamicParameters) -- [GetChildNames](/dotnet/api/System.Management.Automation.Provider.ContainerCmdletProvider.GetChildNames) -- [GetChildNamesDynamicParameters](/dotnet/api/System.Management.Automation.Provider.ContainerCmdletProvider.GetChildNamesDynamicParameters) +- [GetChildItems][04] +- [GetChildItemsDynamicParameters][05] +- [GetChildNames][06] +- [GetChildNamesDynamicParameters][07] ### `Invoke-Item` -This cmdlet allows the user to perform the default action specified by the item. -To support this cmdlet, overwrite the [System.Management.Automation.Provider.ItemCmdletProvider.InvokeDefaultAction](/dotnet/api/System.Management.Automation.Provider.ItemCmdletProvider.InvokeDefaultAction) method. +This cmdlet allows the user to perform the default action specified by the item. To support this +cmdlet, overwrite the +[System.Management.Automation.Provider.ItemCmdletProvider.InvokeDefaultAction][48] method. ### `Move-Item` -This cmdlet allows the user to move an item from one location to another location. -To support this cmdlet, overwrite the following methods of [System.Management.Automation.Provider.Navigationcmdletprovider](/dotnet/api/System.Management.Automation.Provider.NavigationCmdletProvider) class: +This cmdlet allows the user to move an item from one location to another location. To support this +cmdlet, overwrite the following methods of +[System.Management.Automation.Provider.Navigationcmdletprovider][53] class: -- [MoveItem](/dotnet/api/System.Management.Automation.Provider.NavigationCmdletProvider.MoveItem) -- [MoveItemDynamicParameters](/dotnet/api/System.Management.Automation.Provider.NavigationCmdletProvider.MoveItemDynamicParameters) +- [MoveItem][55] +- [MoveItemDynamicParameters][56] ### `New-ItemProperty` @@ -86,27 +94,28 @@ This cmdlet allows the user to create a new item in the data store. ### `Remove-Item` -This cmdlet allows the user to remove items from the data store. -To support this cmdlet, overwrite the following methods of [System.Management.Automation.Provider.ContainerCmdletProvider](/dotnet/api/System.Management.Automation.Provider.ContainerCmdletProvider) class: +This cmdlet allows the user to remove items from the data store. To support this cmdlet, overwrite +the following methods of [System.Management.Automation.Provider.ContainerCmdletProvider][01] class: -- [RemoveItem](/dotnet/api/System.Management.Automation.Provider.ContainerCmdletProvider.RemoveItem) -- [RemoveItemDynamicParameters](/dotnet/api/System.Management.Automation.Provider.ContainerCmdletProvider.RemoveItemDynamicParameters) +- [RemoveItem][08] +- [RemoveItemDynamicParameters][09] ### `Rename-Item` -This cmdlet allows the user to rename items in the data store. -To support this cmdlet, overwrite the following methods of [System.Management.Automation.Provider.ContainerCmdletProvider](/dotnet/api/System.Management.Automation.Provider.ContainerCmdletProvider) class: +This cmdlet allows the user to rename items in the data store. To support this cmdlet, overwrite the +following methods of [System.Management.Automation.Provider.ContainerCmdletProvider][01] class: -- [RenameItem](/dotnet/api/System.Management.Automation.Provider.ContainerCmdletProvider.RenameItem) -- [RenameItemDynamicParameters](/dotnet/api/System.Management.Automation.Provider.ContainerCmdletProvider.RenameItemDynamicParameters) +- [RenameItem][10] +- [RenameItemDynamicParameters][11] ### `Set-Item` -This cmdlet allows the user to update the values of items in the data store. -To support this cmdlet, overwrite the following methods of [System.Management.Automation.Provider.ItemCmdletProvider](/dotnet/api/System.Management.Automation.Provider.ItemCmdletProvider) class: +This cmdlet allows the user to update the values of items in the data store. To support this cmdlet, +overwrite the following methods of [System.Management.Automation.Provider.ItemCmdletProvider][43] +class: -- [SetItem](/dotnet/api/System.Management.Automation.Provider.ItemCmdletProvider.SetItem) -- [SetItemDynamicParameters](/dotnet/api/System.Management.Automation.Provider.ItemCmdletProvider.SetItemDynamicParameters) +- [SetItem][51] +- [SetItemDynamicParameters][52] ## Item content cmdlets @@ -116,126 +125,139 @@ This cmdlet allows the user to add content to an item. ### `Clear-Content` -This cmdlet allows the user to delete content from an item without deleting the item. -To support this cmdlet, overwrite the following methods of [System.Management.Automation.Provider.IContentCmdletProvider](/dotnet/api/System.Management.Automation.Provider.IContentCmdletProvider) interface: +This cmdlet allows the user to delete content from an item without deleting the item. To support +this cmdlet, overwrite the following methods of +[System.Management.Automation.Provider.IContentCmdletProvider][16] interface: -- [ClearContent](/dotnet/api/System.Management.Automation.Provider.IContentCmdletProvider.ClearContent) -- [ClearContentDynamicParameters](/dotnet/api/System.Management.Automation.Provider.IContentCmdletProvider.ClearContentDynamicParameters) +- [ClearContent][17] +- [ClearContentDynamicParameters][18] ### `Get-Content` -This cmdlet allows the user to retrieve the content of an item. -To support this cmdlet, overwrite the following methods of [System.Management.Automation.Provider.IContentCmdletProvider](/dotnet/api/System.Management.Automation.Provider.IContentCmdletProvider) interface: +This cmdlet allows the user to retrieve the content of an item. To support this cmdlet, overwrite +the following methods of [System.Management.Automation.Provider.IContentCmdletProvider][16] +interface: -- [GetContentReader](/dotnet/api/System.Management.Automation.Provider.IContentCmdletProvider.GetContentReader) -- [GetContentReaderDynamicParameters](/dotnet/api/System.Management.Automation.Provider.IContentCmdletProvider.GetContentReaderDynamicParameters) +- [GetContentReader][19] +- [GetContentReaderDynamicParameters][20] -The [GetContentReader](/dotnet/api/System.Management.Automation.Provider.IContentCmdletProvider.GetContentReader) method returns an [System.Management.Automation.Provider.IContentReader](/dotnet/api/System.Management.Automation.Provider.IContentReader) interface that defines the methods used to read the content. +The [GetContentReader][19] method returns an +[System.Management.Automation.Provider.IContentReader][23] interface that defines the methods used +to read the content. ### `Set-Content` -This cmdlet allows the user to update the content of an item. -To support this cmdlet, overwrite the following methods of [System.Management.Automation.Provider.IContentCmdletProvider](/dotnet/api/System.Management.Automation.Provider.IContentCmdletProvider) interface: +This cmdlet allows the user to update the content of an item. To support this cmdlet, overwrite the +following methods of [System.Management.Automation.Provider.IContentCmdletProvider][16] interface: -- [GetContentWriter](/dotnet/api/System.Management.Automation.Provider.IContentCmdletProvider.GetContentWriter) -- [GetContentWriterDynamicParameters](/dotnet/api/System.Management.Automation.Provider.IContentCmdletProvider.GetContentWriterDynamicParameters) +- [GetContentWriter][21] +- [GetContentWriterDynamicParameters][22] -The [GetContentWriter](/dotnet/api/System.Management.Automation.Provider.IContentCmdletProvider.GetContentWriter) method returns an [System.Management.Automation.Provider.IContentWriter](/dotnet/api/System.Management.Automation.Provider.IContentWriter) interface that defines the methods used to write the content. +The [GetContentWriter][21] method returns an +[System.Management.Automation.Provider.IContentWriter][24] interface that defines the methods used +to write the content. ## Item property cmdlets ### `Clear-ItemProperty` -This cmdlet allows the user to delete the value of a property. -To support this cmdlet, overwrite the following methods of [System.Management.Automation.Provider.IPropertyCmdletProvider](/dotnet/api/System.Management.Automation.Provider.IPropertyCmdletProvider) interface: +This cmdlet allows the user to delete the value of a property. To support this cmdlet, overwrite the +following methods of [System.Management.Automation.Provider.IPropertyCmdletProvider][36] interface: -- [ClearProperty](/dotnet/api/System.Management.Automation.Provider.IPropertyCmdletProvider.ClearProperty) -- [ClearPropertyDynamicParameters](/dotnet/api/System.Management.Automation.Provider.IPropertyCmdletProvider.ClearPropertyDynamicParameters) +- [ClearProperty][37] +- [ClearPropertyDynamicParameters][38] ### `Copy-ItemProperty` -This cmdlet allows the user to copy a property and its value from one location to another. -To support this cmdlet, overwrite the following methods of [System.Management.Automation.Provider.IDynamicPropertyCmdletProvider](/dotnet/api/System.Management.Automation.Provider.IDynamicPropertyCmdletProvider) interface: +This cmdlet allows the user to copy a property and its value from one location to another. To +support this cmdlet, overwrite the following methods of +[System.Management.Automation.Provider.IDynamicPropertyCmdletProvider][25] interface: -- [CopyProperty](/dotnet/api/System.Management.Automation.Provider.IDynamicPropertyCmdletProvider.CopyProperty) -- [CopyPropertyDynamicParameters](/dotnet/api/System.Management.Automation.Provider.IDynamicPropertyCmdletProvider.CopyPropertyDynamicParameters) +- [CopyProperty][26] +- [CopyPropertyDynamicParameters][27] ### `Get-ItemProperty` -This cmdlet retrieves the properties of an item. -To support this cmdlet, overwrite the following methods of [System.Management.Automation.Provider.IPropertyCmdletProvider](/dotnet/api/System.Management.Automation.Provider.IPropertyCmdletProvider) interface: +This cmdlet retrieves the properties of an item. To support this cmdlet, overwrite the following +methods of [System.Management.Automation.Provider.IPropertyCmdletProvider][36] interface: -- [GetProperty](/dotnet/api/System.Management.Automation.Provider.IPropertyCmdletProvider.GetProperty) -- [GetPropertyDynamicParameters](/dotnet/api/System.Management.Automation.Provider.IPropertyCmdletProvider.GetPropertyDynamicParameters) +- [GetProperty][39] +- [GetPropertyDynamicParameters][40] ### `Move-ItemProperty` -This cmdlet allows the user to move a property and its value from one location to another. -To support this cmdlet, overwrite the following methods of [System.Management.Automation.Provider.IDynamicPropertyCmdletProvider](/dotnet/api/System.Management.Automation.Provider.IDynamicPropertyCmdletProvider) interface: +This cmdlet allows the user to move a property and its value from one location to another. To +support this cmdlet, overwrite the following methods of +[System.Management.Automation.Provider.IDynamicPropertyCmdletProvider][25] interface: -- [MoveProperty](/dotnet/api/System.Management.Automation.Provider.IDynamicPropertyCmdletProvider.MoveProperty) -- [MovePropertyDynamicParameters](/dotnet/api/System.Management.Automation.Provider.IDynamicPropertyCmdletProvider.MovePropertyDynamicParameters) +- [MoveProperty][28] +- [MovePropertyDynamicParameters][29] ### `New-ItemProperty` -This cmdlet allows the user to create a new property and set its value. -To support this cmdlet, overwrite the following methods of [System.Management.Automation.Provider.IDynamicPropertyCmdletProvider](/dotnet/api/System.Management.Automation.Provider.IDynamicPropertyCmdletProvider) interface: +This cmdlet allows the user to create a new property and set its value. To support this cmdlet, +overwrite the following methods of +[System.Management.Automation.Provider.IDynamicPropertyCmdletProvider][25] interface: -- [NewProperty](/dotnet/api/System.Management.Automation.Provider.IDynamicPropertyCmdletProvider.NewProperty) -- [NewPropertyDynamicParameters](/dotnet/api/System.Management.Automation.Provider.IDynamicPropertyCmdletProvider.NewPropertyDynamicParameters) +- [NewProperty][30] +- [NewPropertyDynamicParameters][31] ### `Remove-ItemProperty` -This cmdlet allows the user to delete a property and its value. -To support this cmdlet, overwrite the following methods of [System.Management.Automation.Provider.IDynamicPropertyCmdletProvider](/dotnet/api/System.Management.Automation.Provider.IDynamicPropertyCmdletProvider) interface: +This cmdlet allows the user to delete a property and its value. To support this cmdlet, overwrite +the following methods of [System.Management.Automation.Provider.IDynamicPropertyCmdletProvider][25] +interface: -- [RemoveProperty](/dotnet/api/System.Management.Automation.Provider.IDynamicPropertyCmdletProvider.RemoveProperty) -- [RemovePropertyDynamicParameters](/dotnet/api/System.Management.Automation.Provider.IDynamicPropertyCmdletProvider.RemovePropertyDynamicParameters) +- [RemoveProperty][32] +- [RemovePropertyDynamicParameters][33] ### `Rename-ItemProperty` -This cmdlet allows the user to change the name of a property. -To support this cmdlet, overwrite the following methods of [System.Management.Automation.Provider.IDynamicPropertyCmdletProvider](/dotnet/api/System.Management.Automation.Provider.IDynamicPropertyCmdletProvider) interface: +This cmdlet allows the user to change the name of a property. To support this cmdlet, overwrite the +following methods of [System.Management.Automation.Provider.IDynamicPropertyCmdletProvider][25] +interface: -- [RenameProperty](/dotnet/api/System.Management.Automation.Provider.IDynamicPropertyCmdletProvider.RenameProperty) -- [RenamePropertyDynamicParameters](/dotnet/api/System.Management.Automation.Provider.IDynamicPropertyCmdletProvider.RenamePropertyDynamicParameters) +- [RenameProperty][34] +- [RenamePropertyDynamicParameters][35] ### `Set-ItemProperty` -This cmdlet allows the user to update the properties of an item. -To support this cmdlet, overwrite the following methods of [System.Management.Automation.Provider.IPropertyCmdletProvider](/dotnet/api/System.Management.Automation.Provider.IPropertyCmdletProvider) interface: +This cmdlet allows the user to update the properties of an item. To support this cmdlet, overwrite +the following methods of [System.Management.Automation.Provider.IPropertyCmdletProvider][36] +interface: -- [SetProperty](/dotnet/api/System.Management.Automation.Provider.IPropertyCmdletProvider.SetProperty) -- [SetPropertyDynamicParameters](/dotnet/api/System.Management.Automation.Provider.IPropertyCmdletProvider.SetPropertyDynamicParameters) +- [SetProperty][41] +- [SetPropertyDynamicParameters][42] ## Location cmdlets ### `Get-Location` -Retrieves information about the current working location. -You do not need to overwrite any methods to support this cmdlet. +Retrieves information about the current working location. You do not need to overwrite any methods +to support this cmdlet. ### `Pop-Location` -This cmdlet changes the current location to the location most recently pushed onto the stack. -You do not need to overwrite any methods to support this cmdlet. +This cmdlet changes the current location to the location most recently pushed onto the stack. You do +not need to overwrite any methods to support this cmdlet. ### `Push-Location` -This cmdlet adds the current location to the top of a list of locations (a "stack"). -You do not need to overwrite any methods to support this cmdlet. +This cmdlet adds the current location to the top of a list of locations (a "stack"). You do not need +to overwrite any methods to support this cmdlet. ### `Set-Location` -This cmdlet sets the current working location to a specified location. -You do not need to overwrite any methods to support this cmdlet. +This cmdlet sets the current working location to a specified location. You do not need to overwrite +any methods to support this cmdlet. ## Path cmdlets ### `Join-Path` -This cmdlet allows the user to combine a parent and child path segment to create a provider-internal path. -To support this cmdlet, overwrite the [System.Management.Automation.Provider.NavigationCmdletProvider.MakePath](/dotnet/api/System.Management.Automation.Provider.NavigationCmdletProvider.MakePath) method. +This cmdlet allows the user to combine a parent and child path segment to create a provider-internal +path. To support this cmdlet, overwrite the +[System.Management.Automation.Provider.NavigationCmdletProvider.MakePath][54] method. ### `Convert-Path` @@ -251,15 +273,73 @@ Resolves the wildcard characters in a path, and displays the path contents. ### `Test-Path` -This cmdlet determines whether all elements of a path exist. -To support this cmdlet, overwrite the following methods of [System.Management.Automation.Provider.ItemCmdletProvider](/dotnet/api/System.Management.Automation.Provider.ItemCmdletProvider) class: +This cmdlet determines whether all elements of a path exist. To support this cmdlet, overwrite the +following methods of [System.Management.Automation.Provider.ItemCmdletProvider][43] class: -- [ItemExists](/dotnet/api/System.Management.Automation.Provider.ItemCmdletProvider.ItemExists) -- [ItemExistsDynamicParameters](/dotnet/api/System.Management.Automation.Provider.ItemCmdletProvider.ItemExistsDynamicParameters) +- [ItemExists][49] +- [ItemExistsDynamicParameters][50] ## PSProvider cmdlets ### `Get-PSProvider` -This cmdlet returns information about the providers available in the session. -You do not need to overwrite any methods to support this cmdlet. +This cmdlet returns information about the providers available in the session. You do not need to +overwrite any methods to support this cmdlet. + + +[01]: xref:System.Management.Automation.Provider.ContainerCmdletProvider +[02]: xref:System.Management.Automation.Provider.ContainerCmdletProvider.CopyItem +[03]: xref:System.Management.Automation.Provider.ContainerCmdletProvider.CopyItemDynamicParameters +[04]: xref:System.Management.Automation.Provider.ContainerCmdletProvider.GetChildItems +[05]: xref:System.Management.Automation.Provider.ContainerCmdletProvider.GetChildItemsDynamicParameters +[06]: xref:System.Management.Automation.Provider.ContainerCmdletProvider.GetChildNames +[07]: xref:System.Management.Automation.Provider.ContainerCmdletProvider.GetChildNamesDynamicParameters +[08]: xref:System.Management.Automation.Provider.ContainerCmdletProvider.RemoveItem +[09]: xref:System.Management.Automation.Provider.ContainerCmdletProvider.RemoveItemDynamicParameters +[10]: xref:System.Management.Automation.Provider.ContainerCmdletProvider.RenameItem +[11]: xref:System.Management.Automation.Provider.ContainerCmdletProvider.RenameItemDynamicParameters +[12]: xref:System.Management.Automation.Provider.DriveCmdletProvider +[13]: xref:System.Management.Automation.Provider.DriveCmdletProvider.NewDrive +[14]: xref:System.Management.Automation.Provider.DriveCmdletProvider.NewDriveDynamicParameters +[15]: xref:System.Management.Automation.Provider.DriveCmdletProvider.RemoveDrive +[16]: xref:System.Management.Automation.Provider.IContentCmdletProvider +[17]: xref:System.Management.Automation.Provider.IContentCmdletProvider.ClearContent +[18]: xref:System.Management.Automation.Provider.IContentCmdletProvider.ClearContentDynamicParameters +[19]: xref:System.Management.Automation.Provider.IContentCmdletProvider.GetContentReader +[20]: xref:System.Management.Automation.Provider.IContentCmdletProvider.GetContentReaderDynamicParameters +[21]: xref:System.Management.Automation.Provider.IContentCmdletProvider.GetContentWriter +[22]: xref:System.Management.Automation.Provider.IContentCmdletProvider.GetContentWriterDynamicParameters +[23]: xref:System.Management.Automation.Provider.IContentReader +[24]: xref:System.Management.Automation.Provider.IContentWriter +[25]: xref:System.Management.Automation.Provider.IDynamicPropertyCmdletProvider +[26]: xref:System.Management.Automation.Provider.IDynamicPropertyCmdletProvider.CopyProperty +[27]: xref:System.Management.Automation.Provider.IDynamicPropertyCmdletProvider.CopyPropertyDynamicParameters +[28]: xref:System.Management.Automation.Provider.IDynamicPropertyCmdletProvider.MoveProperty +[29]: xref:System.Management.Automation.Provider.IDynamicPropertyCmdletProvider.MovePropertyDynamicParameters +[30]: xref:System.Management.Automation.Provider.IDynamicPropertyCmdletProvider.NewProperty +[31]: xref:System.Management.Automation.Provider.IDynamicPropertyCmdletProvider.NewPropertyDynamicParameters +[32]: xref:System.Management.Automation.Provider.IDynamicPropertyCmdletProvider.RemoveProperty +[33]: xref:System.Management.Automation.Provider.IDynamicPropertyCmdletProvider.RemovePropertyDynamicParameters +[34]: xref:System.Management.Automation.Provider.IDynamicPropertyCmdletProvider.RenameProperty +[35]: xref:System.Management.Automation.Provider.IDynamicPropertyCmdletProvider.RenamePropertyDynamicParameters +[36]: xref:System.Management.Automation.Provider.IPropertyCmdletProvider +[37]: xref:System.Management.Automation.Provider.IPropertyCmdletProvider.ClearProperty +[38]: xref:System.Management.Automation.Provider.IPropertyCmdletProvider.ClearPropertyDynamicParameters +[39]: xref:System.Management.Automation.Provider.IPropertyCmdletProvider.GetProperty +[40]: xref:System.Management.Automation.Provider.IPropertyCmdletProvider.GetPropertyDynamicParameters +[41]: xref:System.Management.Automation.Provider.IPropertyCmdletProvider.SetProperty +[42]: xref:System.Management.Automation.Provider.IPropertyCmdletProvider.SetPropertyDynamicParameters +[43]: xref:System.Management.Automation.Provider.ItemCmdletProvider +[44]: xref:System.Management.Automation.Provider.ItemCmdletProvider.ClearItem +[45]: xref:System.Management.Automation.Provider.ItemCmdletProvider.ClearItemDynamicParameters +[46]: xref:System.Management.Automation.Provider.ItemCmdletProvider.GetItem +[47]: xref:System.Management.Automation.Provider.ItemCmdletProvider.GetItemDynamicParameters +[48]: xref:System.Management.Automation.Provider.ItemCmdletProvider.InvokeDefaultAction +[49]: xref:System.Management.Automation.Provider.ItemCmdletProvider.ItemExists +[50]: xref:System.Management.Automation.Provider.ItemCmdletProvider.ItemExistsDynamicParameters +[51]: xref:System.Management.Automation.Provider.ItemCmdletProvider.SetItem +[52]: xref:System.Management.Automation.Provider.ItemCmdletProvider.SetItemDynamicParameters +[53]: xref:System.Management.Automation.Provider.NavigationCmdletProvider +[54]: xref:System.Management.Automation.Provider.NavigationCmdletProvider.MakePath +[55]: xref:System.Management.Automation.Provider.NavigationCmdletProvider.MoveItem +[56]: xref:System.Management.Automation.Provider.NavigationCmdletProvider.MoveItemDynamicParameters diff --git a/reference/docs-conceptual/developer/provider/provider-types.md b/reference/docs-conceptual/developer/provider/provider-types.md index 5143b54be068..99662e92ada4 100644 --- a/reference/docs-conceptual/developer/provider/provider-types.md +++ b/reference/docs-conceptual/developer/provider/provider-types.md @@ -14,7 +14,7 @@ store. The provider functionality described in this document includes functional overwriting methods from specific provider base classes and interfaces. > [!NOTE] -> For provider features that are pre-defined by PowerShell, see [Provider capabilities](/previous-versions//ee126189(v=vs.85)). +> For provider features that are pre-defined by PowerShell, see [Provider capabilities][02]. ## Drive-enabled providers @@ -24,329 +24,304 @@ default drive to access the data store. However, when writing your own provider not want to allow the user to create and remove drives. To create a drive-enabled provider, your provider class must derive from the -[System.Management.Automation.Provider.DriveCmdletProvider](/dotnet/api/System.Management.Automation.Provider.DriveCmdletProvider) -class or another class that derives from that class. The -**DriveCmdletProvider** class defines the following methods -for implementing the default drives of the provider and supporting the `New-PSDrive` and -`Remove-PSDrive` cmdlets. In most cases, to support a provider cmdlet you must overwrite the method -that the PowerShell engine calls to invoke the cmdlet, such as the `NewDrive` method for the -`New-PSDrive` cmdlet, and optionally you can overwrite a second method, such as -`NewDriveDynamicParameters`, for adding dynamic parameters to the cmdlet. +[System.Management.Automation.Provider.DriveCmdletProvider][19] class or another class that derives +from that class. The **DriveCmdletProvider** class defines the following methods for implementing +the default drives of the provider and supporting the `New-PSDrive` and `Remove-PSDrive` cmdlets. In +most cases, to support a provider cmdlet you must overwrite the method that the PowerShell engine +calls to invoke the cmdlet, such as the `NewDrive` method for the `New-PSDrive` cmdlet, and +optionally you can overwrite a second method, such as `NewDriveDynamicParameters`, for adding +dynamic parameters to the cmdlet. -- The - [InitializeDefaultDrives](/dotnet/api/System.Management.Automation.Provider.DriveCmdletProvider.InitializeDefaultDrives) - method defines the default drives that are available to the user whenever the provider is used. +- The [InitializeDefaultDrives][20] method defines the default drives that are available to the user + whenever the provider is used. -- The - [NewDrive](/dotnet/api/System.Management.Automation.Provider.DriveCmdletProvider.NewDrive) - and - [NewDriveDynamicParameters](/dotnet/api/System.Management.Automation.Provider.DriveCmdletProvider.NewDriveDynamicParameters) - methods defines how your provider supports the `New-PSDrive` provider cmdlet. This cmdlet allows - the user to create drives to access the data store. +- The [NewDrive][21] and [NewDriveDynamicParameters][22] methods defines how your provider supports + the `New-PSDrive` provider cmdlet. This cmdlet allows the user to create drives to access the data + store. -- The - [RemoveDrive](/dotnet/api/System.Management.Automation.Provider.DriveCmdletProvider.RemoveDrive) - method defines how your provider supports the `Remove-PSDrive` provider cmdlet. This cmdlet allows - the user to remove drives from the data store. +- The [RemoveDrive][23] method defines how your provider supports the `Remove-PSDrive` provider + cmdlet. This cmdlet allows the user to remove drives from the data store. ## Item-enabled providers Item-enabled providers allow the user to get, set, or clear the items in the data store. An "item" is an element of the data store that the user can access or manage independently. To create an item-enabled provider, your provider class must derive from the -[System.Management.Automation.Provider.ItemCmdletProvider](/dotnet/api/System.Management.Automation.Provider.ItemCmdletProvider) -class or another class that derives from that class. +[System.Management.Automation.Provider.ItemCmdletProvider][51] class or another class that derives +from that class. -The **ItemCmdletProvider** class defines the following methods -for implementing specific provider cmdlets. In most cases, to support a provider cmdlet you must -overwrite the method that the PowerShell engine calls to invoke the cmdlet, such as the `ClearItem` -method for the `Clear-Item` cmdlet, and optionally you can overwrite a second method, such as -`ClearItemDynamicParameters`, for adding dynamic parameters to the cmdlet. +The **ItemCmdletProvider** class defines the following methods for implementing specific provider +cmdlets. In most cases, to support a provider cmdlet you must overwrite the method that the +PowerShell engine calls to invoke the cmdlet, such as the `ClearItem` method for the `Clear-Item` +cmdlet, and optionally you can overwrite a second method, such as `ClearItemDynamicParameters`, for +adding dynamic parameters to the cmdlet. -- The - [ClearItem](/dotnet/api/System.Management.Automation.Provider.ItemCmdletProvider.ClearItem) - and - [ClearItemDynamicParameters](/dotnet/api/System.Management.Automation.Provider.ItemCmdletProvider.ClearItemDynamicParameters) - methods define how your provider supports the `Clear-Item` provider cmdlet. This cmdlet allows the - user to remove of the value of an item in the data store. +- The [ClearItem][52] and [ClearItemDynamicParameters][53] methods define how your provider supports + the `Clear-Item` provider cmdlet. This cmdlet allows the user to remove of the value of an item in + the data store. -- The - [GetItem](/dotnet/api/System.Management.Automation.Provider.ItemCmdletProvider.GetItem) - and - [GetItemDynamicParameters](/dotnet/api/System.Management.Automation.Provider.ItemCmdletProvider.GetItemDynamicParameters) - methods define how your provider supports the `Get-Item` provider cmdlet. This cmdlet allows the - user to retrieve data from the data store. +- The [GetItem][55] and [GetItemDynamicParameters][56] methods define how your provider supports the + `Get-Item` provider cmdlet. This cmdlet allows the user to retrieve data from the data store. -- The - [SetItem](/dotnet/api/System.Management.Automation.Provider.ItemCmdletProvider.SetItem) - and - [SetItemDynamicParameters](/dotnet/api/System.Management.Automation.Provider.ItemCmdletProvider.SetItemDynamicParameters) - methods define how your provider supports the `Set-Item` provider cmdlet. This cmdlet allows the - user to update the values of items in the data store. +- The [SetItem][62] and [SetItemDynamicParameters][63] methods define how your provider supports the + `Set-Item` provider cmdlet. This cmdlet allows the user to update the values of items in the data + store. -- The - [InvokeDefaultAction](/dotnet/api/System.Management.Automation.Provider.ItemCmdletProvider.InvokeDefaultAction) - and - [InvokeDefaultActionDynamicParameters](/dotnet/api/system.management.automation.provider.itemcmdletprovider.invokedefaultactiondynamicparameters) - methods define how your provider supports the `Invoke-Item` provider cmdlet. This cmdlet allows - the user to perform the default action specified by the item. +- The [InvokeDefaultAction][57] and [InvokeDefaultActionDynamicParameters][58] methods define how + your provider supports the `Invoke-Item` provider cmdlet. This cmdlet allows the user to perform + the default action specified by the item. -- The - [ItemExists](/dotnet/api/System.Management.Automation.Provider.ItemCmdletProvider.ItemExists) - and - [ItemExistsDynamicParameters](/dotnet/api/System.Management.Automation.Provider.ItemCmdletProvider.ItemExistsDynamicParameters) - methods define how your provider supports the `Test-Path` provider cmdlet. This cmdlet allows the - user to determine if all the elements of a path exist. +- The [ItemExists][60] and [ItemExistsDynamicParameters][61] methods define how your provider + supports the `Test-Path` provider cmdlet. This cmdlet allows the user to determine if all the + elements of a path exist. -In addition to the methods used to implement provider cmdlets, the -**ItemCmdletProvider** class also defines the following -methods: +In addition to the methods used to implement provider cmdlets, the **ItemCmdletProvider** class also +defines the following methods: -- The - [ExpandPath](/dotnet/api/System.Management.Automation.Provider.ItemCmdletProvider.ExpandPath) - method allows the user to use wildcards when specifying the provider path. +- The [ExpandPath][54] method allows the user to use wildcards when specifying the provider path. -- The - [IsValidPath](/dotnet/api/System.Management.Automation.Provider.ItemCmdletProvider.IsValidPath) - is used to determine if a path is syntactically and semantically valid for the provider. +- The [IsValidPath][59] is used to determine if a path is syntactically and semantically valid for + the provider. ## Container-enabled providers Container-enabled providers allow the user to manage items that are containers. A container is a group of child items under a common parent item. To create a container-enabled provider, your provider class must derive from the -[System.Management.Automation.Provider.ContainerCmdletProvider](/dotnet/api/System.Management.Automation.Provider.ContainerCmdletProvider) -class or another class that derives from that class. +[System.Management.Automation.Provider.ContainerCmdletProvider][04] class or another class that +derives from that class. > [!IMPORTANT] > Container-enabled providers can't access data stores that contain nested containers. If a child > item of a container is another container, you must implement a navigation-enabled provider. -The **ContainerCmdletProvider** class defines the following -methods for implementing specific provider cmdlets. In most cases, to support a provider cmdlet you -must overwrite the method that the PowerShell engine calls to invoke the cmdlet, such as the -`CopyItem` method for the `Copy-Item` cmdlet, and optionally you can overwrite a second method, such -as `CopyItemDynamicParameters`, for adding dynamic parameters to the cmdlet. +The **ContainerCmdletProvider** class defines the following methods for implementing specific +provider cmdlets. In most cases, to support a provider cmdlet you must overwrite the method that the +PowerShell engine calls to invoke the cmdlet, such as the `CopyItem` method for the `Copy-Item` +cmdlet, and optionally you can overwrite a second method, such as `CopyItemDynamicParameters`, for +adding dynamic parameters to the cmdlet. -- The - [CopyItem](/dotnet/api/System.Management.Automation.Provider.ContainerCmdletProvider.CopyItem) - and - [CopyItemDynamicParameters](/dotnet/api/System.Management.Automation.Provider.ContainerCmdletProvider.CopyItemDynamicParameters) - methods define how your provider supports the `Copy-Item` provider cmdlet. This cmdlet allows the - user to copy an item from one location to another. +- The [CopyItem][06] and [CopyItemDynamicParameters][07] methods define how your provider supports + the `Copy-Item` provider cmdlet. This cmdlet allows the user to copy an item from one location to + another. -- The - [GetChildItems](/dotnet/api/System.Management.Automation.Provider.ContainerCmdletProvider.GetChildItems) - and - [GetChildItemsDynamicParameters](/dotnet/api/System.Management.Automation.Provider.ContainerCmdletProvider.GetChildItemsDynamicParameters) - methods define how your provider supports the `Get-ChildItem` provider cmdlet. This cmdlet allows - the user to retrieve the child items of the parent item. +- The [GetChildItems][08] and [GetChildItemsDynamicParameters][09] methods define how your provider + supports the `Get-ChildItem` provider cmdlet. This cmdlet allows the user to retrieve the child + items of the parent item. -- The - [GetChildNames](/dotnet/api/System.Management.Automation.Provider.ContainerCmdletProvider.GetChildNames) - and - [GetChildNamesDynamicParameters](/dotnet/api/System.Management.Automation.Provider.ContainerCmdletProvider.GetChildNamesDynamicParameters) - methods define how your provider supports the `Get-ChildItem` provider cmdlet if its `Name` - parameter is specified. +- The [GetChildNames][10] and [GetChildNamesDynamicParameters][11] methods define how your provider + supports the `Get-ChildItem` provider cmdlet if its `Name` parameter is specified. -- The - [NewItem](/dotnet/api/System.Management.Automation.Provider.ContainerCmdletProvider.NewItem) - and - [NewItemDynamicParameters](/dotnet/api/System.Management.Automation.Provider.ContainerCmdletProvider.NewItemDynamicParameters) - methods define how your provider supports the `New-Item` provider cmdlet. This cmdlet allows the - user to create new items in the data store. +- The [NewItem][13] and [NewItemDynamicParameters][14] methods define how your provider supports the + `New-Item` provider cmdlet. This cmdlet allows the user to create new items in the data store. -- The - [RemoveItem](/dotnet/api/System.Management.Automation.Provider.ContainerCmdletProvider.RemoveItem) - and - [RemoveItemDynamicParameters](/dotnet/api/System.Management.Automation.Provider.ContainerCmdletProvider.RemoveItemDynamicParameters) - methods define how your provider supports the `Remove-Item` provider cmdlet. This cmdlet allows - the user to remove items from the data store. +- The [RemoveItem][15] and [RemoveItemDynamicParameters][16] methods define how your provider + supports the `Remove-Item` provider cmdlet. This cmdlet allows the user to remove items from the + data store. -- The - [RenameItem](/dotnet/api/System.Management.Automation.Provider.ContainerCmdletProvider.RenameItem) - and - [RenameItemDynamicParameters](/dotnet/api/System.Management.Automation.Provider.ContainerCmdletProvider.RenameItemDynamicParameters) - methods define how your provider supports the `Rename-Item` provider cmdlet. This cmdlet allows - the user to rename items in the data store. +- The [RenameItem][17] and [RenameItemDynamicParameters][18] methods define how your provider + supports the `Rename-Item` provider cmdlet. This cmdlet allows the user to rename items in the + data store. -In addition to the methods used to implement provider cmdlets, the -**ContainerCmdletProvider** class also defines the following -methods: +In addition to the methods used to implement provider cmdlets, the **ContainerCmdletProvider** class +also defines the following methods: -- The - [HasChildItems](/dotnet/api/System.Management.Automation.Provider.ContainerCmdletProvider.HasChildItems) - method can be used by the provider class to determine whether an item has child items. +- The [HasChildItems][12] method can be used by the provider class to determine whether an item has + child items. -- The - [ConvertPath](/dotnet/api/System.Management.Automation.Provider.ContainerCmdletProvider.ConvertPath) - method can be used by the provider class to create a new provider-specific path from a specified - path. +- The [ConvertPath][05] method can be used by the provider class to create a new provider-specific + path from a specified path. ## Navigation-enabled providers Navigation-enabled providers allow the user to move items in the data store. To create a navigation-enabled provider, your provider class must derive from the -[System.Management.Automation.Provider.NavigationCmdletProvider](/dotnet/api/System.Management.Automation.Provider.NavigationCmdletProvider) +[System.Management.Automation.Provider.NavigationCmdletProvider][64] class. -The **NavigationCmdletProvider** class defines the following -methods for implementing specific provider cmdlets. In most cases, to support a provider cmdlet you -must overwrite the method that the PowerShell engine calls to invoke the cmdlet, such as the -`MoveItem` method for the `Move-Item` cmdlet, and optionally you can overwrite a second method, such -as `MoveItemDynamicParameters`, for adding dynamic parameters to the cmdlet. +The **NavigationCmdletProvider** class defines the following methods for implementing specific +provider cmdlets. In most cases, to support a provider cmdlet you must overwrite the method that the +PowerShell engine calls to invoke the cmdlet, such as the `MoveItem` method for the `Move-Item` +cmdlet, and optionally you can overwrite a second method, such as `MoveItemDynamicParameters`, for +adding dynamic parameters to the cmdlet. -- The - [MoveItem](/dotnet/api/System.Management.Automation.Provider.NavigationCmdletProvider.MoveItem) - and - [MoveItemDynamicParameters](/dotnet/api/System.Management.Automation.Provider.NavigationCmdletProvider.MoveItemDynamicParameters) - methods define how your provider supports the `Move-Item` provider cmdlet. This cmdlet allows the - user to move an item from one location in the store to another location. +- The [MoveItem][69] and [MoveItemDynamicParameters][70] methods define how your provider supports + the `Move-Item` provider cmdlet. This cmdlet allows the user to move an item from one location in + the store to another location. -- The - [MakePath](/dotnet/api/System.Management.Automation.Provider.NavigationCmdletProvider.MakePath) - method defines how your provider supports the `Join-Path` provider cmdlet. This cmdlet allows the - user to combine a parent and child path segment to create a provider-internal path. +- The [MakePath][68] method defines how your provider supports the `Join-Path` provider cmdlet. This + cmdlet allows the user to combine a parent and child path segment to create a provider-internal + path. -In addition to the methods used to implement provider cmdlets, the -**NavigationCmdletProvider** class also defines the following -methods: +In addition to the methods used to implement provider cmdlets, the **NavigationCmdletProvider** +class also defines the following methods: -- The - [GetChildName](/dotnet/api/System.Management.Automation.Provider.NavigationCmdletProvider.GetChildName) - method extracts the name of the child node of a path. +- The [GetChildName][65] method extracts the name of the child node of a path. -- The - [GetParentPath](/dotnet/api/System.Management.Automation.Provider.NavigationCmdletProvider.GetParentPath) - method extracts the parent part of a path. +- The [GetParentPath][66] method extracts the parent part of a path. -- The - [IsItemContainer](/dotnet/api/System.Management.Automation.Provider.NavigationCmdletProvider.IsItemContainer) - method determines whether the item is a container item. In this context, a container is a group of - child items under a common parent item. +- The [IsItemContainer][67] method determines whether the item is a container item. In this context, + a container is a group of child items under a common parent item. -- The - [NormalizeRelativePath](/dotnet/api/System.Management.Automation.Provider.NavigationCmdletProvider.NormalizeRelativePath) - method returns a path to an item that's relative to a specified base path. +- The [NormalizeRelativePath][71] method returns a path to an item that's relative to a specified + base path. ## Content-enabled providers Content-enabled providers allow the user to clear, get, or set the content of items in a data store. For example, the FileSystem provider allows you to clear, get, and set the content of files in the file system. To create a content enabled provider, your provider class must implement the methods of -the -[System.Management.Automation.Provider.IContentCmdletProvider](/dotnet/api/System.Management.Automation.Provider.IContentCmdletProvider) -interface. +the [System.Management.Automation.Provider.IContentCmdletProvider][24] interface. -The **IContentCmdletProvider** interface defines the following -methods for implementing specific provider cmdlets. In most cases, to support a provider cmdlet you -must overwrite the method that the PowerShell engine calls to invoke the cmdlet, such as the -`ClearContent` method for the `Clear-Content` cmdlet, and optionally you can overwrite a second -method, such as `ClearContentDynamicParameters`, for adding dynamic parameters to the cmdlet. +The **IContentCmdletProvider** interface defines the following methods for implementing specific +provider cmdlets. In most cases, to support a provider cmdlet you must overwrite the method that the +PowerShell engine calls to invoke the cmdlet, such as the `ClearContent` method for the +`Clear-Content` cmdlet, and optionally you can overwrite a second method, such as +`ClearContentDynamicParameters`, for adding dynamic parameters to the cmdlet. - The - [ClearContent](/dotnet/api/System.Management.Automation.Provider.IContentCmdletProvider.ClearContent) + [ClearContent][25] and - [ClearContentDynamicParameters](/dotnet/api/System.Management.Automation.Provider.IContentCmdletProvider.ClearContentDynamicParameters) + [ClearContentDynamicParameters][26] methods define how your provider supports the `Clear-Content` provider cmdlet. This cmdlet allows the user to delete the content of an item without deleting the item. -- The - [GetContentReader](/dotnet/api/System.Management.Automation.Provider.IContentCmdletProvider.GetContentReader) - and - [GetContentReaderDynamicParameters](/dotnet/api/System.Management.Automation.Provider.IContentCmdletProvider.GetContentReaderDynamicParameters) - methods define how your provider supports the `Get-Content` provider cmdlet. This cmdlet allows - the user to retrieve the content of an item. The - `GetContentReader` method returns an - [System.Management.Automation.Provider.IContentReader](/dotnet/api/System.Management.Automation.Provider.IContentReader) - interface that defines the methods used to read the content. +- The [GetContentReader][27] and [GetContentReaderDynamicParameters][28] methods define how your + provider supports the `Get-Content` provider cmdlet. This cmdlet allows the user to retrieve the + content of an item. The `GetContentReader` method returns an + [System.Management.Automation.Provider.IContentReader][31] interface that defines the methods used + to read the content. -- The - [GetContentWriter](/dotnet/api/System.Management.Automation.Provider.IContentCmdletProvider.GetContentWriter) - and - [GetContentWriterDynamicParameters](/dotnet/api/System.Management.Automation.Provider.IContentCmdletProvider.GetContentWriterDynamicParameters) - methods define how your provider supports the `Set-Content` provider cmdlet. This cmdlet allows - the user to update the content of an item. The - `GetContentWriter` method returns an - [System.Management.Automation.Provider.IContentWriter](/dotnet/api/System.Management.Automation.Provider.IContentWriter) - interface that defines the methods used to write the content. +- The [GetContentWriter][29] and [GetContentWriterDynamicParameters][30] methods define how your + provider supports the `Set-Content` provider cmdlet. This cmdlet allows the user to update the + content of an item. The `GetContentWriter` method returns an + [System.Management.Automation.Provider.IContentWriter][32] interface that defines the methods used + to write the content. ## Property-enabled providers Property-enabled providers allow the user to manage the properties of the items in the data store. To create a property-enabled provider, your provider class must implement the methods of the -[System.Management.Automation.Provider.IPropertyCmdletProvider](/dotnet/api/System.Management.Automation.Provider.IPropertyCmdletProvider) -and -[System.Management.Automation.Provider.IDynamicPropertyCmdletProvider](/dotnet/api/System.Management.Automation.Provider.IDynamicPropertyCmdletProvider) -interfaces. In most cases, to support a provider cmdlet you must overwrite the method that the -PowerShell engine calls to invoke the cmdlet, such as the `ClearProperty` method for the -Clear-Property cmdlet, and optionally you can overwrite a second method, such as -`ClearPropertyDynamicParameters`, for adding dynamic parameters to the cmdlet. +[System.Management.Automation.Provider.IPropertyCmdletProvider][44] and +[System.Management.Automation.Provider.IDynamicPropertyCmdletProvider][33] interfaces. In most +cases, to support a provider cmdlet you must overwrite the method that the PowerShell engine calls +to invoke the cmdlet, such as the `ClearProperty` method for the Clear-Property cmdlet, and +optionally you can overwrite a second method, such as `ClearPropertyDynamicParameters`, for adding +dynamic parameters to the cmdlet. -The **IPropertyCmdletProvider** interface defines the -following methods for implementing specific provider cmdlets: +The **IPropertyCmdletProvider** interface defines the following methods for implementing specific +provider cmdlets: -- The - [ClearProperty](/dotnet/api/System.Management.Automation.Provider.IPropertyCmdletProvider.ClearProperty) - and - [ClearPropertyDynamicParameters](/dotnet/api/System.Management.Automation.Provider.IPropertyCmdletProvider.ClearPropertyDynamicParameters) - methods define how your provider supports the `Clear-ItemProperty` provider cmdlet. This cmdlet - allows the user to delete the value of a property. +- The [ClearProperty][45] and [ClearPropertyDynamicParameters][46] methods define how your provider + supports the `Clear-ItemProperty` provider cmdlet. This cmdlet allows the user to delete the value + of a property. -- The - [GetProperty](/dotnet/api/System.Management.Automation.Provider.IPropertyCmdletProvider.GetProperty) - and - [GetPropertyDynamicParameters](/dotnet/api/System.Management.Automation.Provider.IPropertyCmdletProvider.GetPropertyDynamicParameters) - methods define how your provider supports the `Get-ItemProperty` provider cmdlet. This cmdlet - allows the user to retrieve the property of an item. +- The [GetProperty][47] and [GetPropertyDynamicParameters][48] methods define how your provider + supports the `Get-ItemProperty` provider cmdlet. This cmdlet allows the user to retrieve the + property of an item. -- The - [SetProperty](/dotnet/api/System.Management.Automation.Provider.IPropertyCmdletProvider.SetProperty) - and - [SetPropertyDynamicParameters](/dotnet/api/System.Management.Automation.Provider.IPropertyCmdletProvider.SetPropertyDynamicParameters) - methods define how your provider supports the `Set-ItemProperty` provider cmdlet. This cmdlet - allows the user to update the properties of an item. +- The [SetProperty][49] and [SetPropertyDynamicParameters][50] methods define how your provider + supports the `Set-ItemProperty` provider cmdlet. This cmdlet allows the user to update the + properties of an item. -The **IDynamicPropertyCmdletProvider** interface defines the -following methods for implementing specific provider cmdlets: +The **IDynamicPropertyCmdletProvider** interface defines the following methods for implementing +specific provider cmdlets: -- The - [CopyProperty](/dotnet/api/System.Management.Automation.Provider.IDynamicPropertyCmdletProvider.CopyProperty) - and - [CopyPropertyDynamicParameters](/dotnet/api/System.Management.Automation.Provider.IDynamicPropertyCmdletProvider.CopyPropertyDynamicParameters) - methods define how your provider supports the `Copy-ItemProperty` provider cmdlet. This cmdlet - allows the user to copy a property and its value from one location to another. +- The [CopyProperty][34] and [CopyPropertyDynamicParameters][35] methods define how your provider + supports the `Copy-ItemProperty` provider cmdlet. This cmdlet allows the user to copy a property + and its value from one location to another. -- The - [MoveProperty](/dotnet/api/System.Management.Automation.Provider.IDynamicPropertyCmdletProvider.MoveProperty) - and - [MovePropertyDynamicParameters](/dotnet/api/System.Management.Automation.Provider.IDynamicPropertyCmdletProvider.MovePropertyDynamicParameters) - methods define how your provider supports the `Move-ItemProperty` provider cmdlet. This cmdlet - allows the user to move a property and its value from one location to another. +- The [MoveProperty][36] and [MovePropertyDynamicParameters][37] methods define how your provider + supports the `Move-ItemProperty` provider cmdlet. This cmdlet allows the user to move a property + and its value from one location to another. -- The - [NewProperty](/dotnet/api/System.Management.Automation.Provider.IDynamicPropertyCmdletProvider.NewProperty) - and - [NewPropertyDynamicParameters](/dotnet/api/System.Management.Automation.Provider.IDynamicPropertyCmdletProvider.NewPropertyDynamicParameters) - methods define how your provider supports the `New-ItemProperty` provider cmdlet. This cmdlet - allows the user to create a new property and set its value. +- The [NewProperty][38] and [NewPropertyDynamicParameters][39] methods define how your provider + supports the `New-ItemProperty` provider cmdlet. This cmdlet allows the user to create a new + property and set its value. -- The - [RemoveProperty](/dotnet/api/System.Management.Automation.Provider.IDynamicPropertyCmdletProvider.RemoveProperty) - and - [RemovePropertyDynamicParameters](/dotnet/api/System.Management.Automation.Provider.IDynamicPropertyCmdletProvider.RemovePropertyDynamicParameters) - methods define how your provider supports the `Remove-ItemProperty` cmdlet. This cmdlet allows the - user to delete a property and its value. +- The [RemoveProperty][40] and [RemovePropertyDynamicParameters][41] methods define how your + provider supports the `Remove-ItemProperty` cmdlet. This cmdlet allows the user to delete a + property and its value. -- The - [RenameProperty](/dotnet/api/System.Management.Automation.Provider.IDynamicPropertyCmdletProvider.RenameProperty) - and - [RenamePropertyDynamicParameters](/dotnet/api/System.Management.Automation.Provider.IDynamicPropertyCmdletProvider.RenamePropertyDynamicParameters) - methods define how your provider supports the `Rename-ItemProperty` cmdlet. This cmdlet allows the - user to change the name of a property. +- The [RenameProperty][42] and [RenamePropertyDynamicParameters][43] methods define how your + provider supports the `Rename-ItemProperty` cmdlet. This cmdlet allows the user to change the name + of a property. ## See also -[about_Providers](/powershell/module/microsoft.powershell.core/about/about_providers) - -[Writing a Windows PowerShell Provider](./writing-a-windows-powershell-provider.md) +[about_Providers][01] + +[Writing a Windows PowerShell Provider][03] + + +[01]: /powershell/module/microsoft.powershell.core/about/about_providers +[02]: /previous-versions//ee126189(v=vs.85) +[03]: writing-a-windows-powershell-provider.md +[04]: xref:System.Management.Automation.Provider.ContainerCmdletProvider +[05]: xref:System.Management.Automation.Provider.ContainerCmdletProvider.ConvertPath +[06]: xref:System.Management.Automation.Provider.ContainerCmdletProvider.CopyItem +[07]: xref:System.Management.Automation.Provider.ContainerCmdletProvider.CopyItemDynamicParameters +[08]: xref:System.Management.Automation.Provider.ContainerCmdletProvider.GetChildItems +[09]: xref:System.Management.Automation.Provider.ContainerCmdletProvider.GetChildItemsDynamicParameters +[10]: xref:System.Management.Automation.Provider.ContainerCmdletProvider.GetChildNames +[11]: xref:System.Management.Automation.Provider.ContainerCmdletProvider.GetChildNamesDynamicParameters +[12]: xref:System.Management.Automation.Provider.ContainerCmdletProvider.HasChildItems +[13]: xref:System.Management.Automation.Provider.ContainerCmdletProvider.NewItem +[14]: xref:System.Management.Automation.Provider.ContainerCmdletProvider.NewItemDynamicParameters +[15]: xref:System.Management.Automation.Provider.ContainerCmdletProvider.RemoveItem +[16]: xref:System.Management.Automation.Provider.ContainerCmdletProvider.RemoveItemDynamicParameters +[17]: xref:System.Management.Automation.Provider.ContainerCmdletProvider.RenameItem +[18]: xref:System.Management.Automation.Provider.ContainerCmdletProvider.RenameItemDynamicParameters +[19]: xref:System.Management.Automation.Provider.DriveCmdletProvider +[20]: xref:System.Management.Automation.Provider.DriveCmdletProvider.InitializeDefaultDrives +[21]: xref:System.Management.Automation.Provider.DriveCmdletProvider.NewDrive +[22]: xref:System.Management.Automation.Provider.DriveCmdletProvider.NewDriveDynamicParameters +[23]: xref:System.Management.Automation.Provider.DriveCmdletProvider.RemoveDrive +[24]: xref:System.Management.Automation.Provider.IContentCmdletProvider +[25]: xref:System.Management.Automation.Provider.IContentCmdletProvider.ClearContent +[26]: xref:System.Management.Automation.Provider.IContentCmdletProvider.ClearContentDynamicParameters +[27]: xref:System.Management.Automation.Provider.IContentCmdletProvider.GetContentReader +[28]: xref:System.Management.Automation.Provider.IContentCmdletProvider.GetContentReaderDynamicParameters +[29]: xref:System.Management.Automation.Provider.IContentCmdletProvider.GetContentWriter +[30]: xref:System.Management.Automation.Provider.IContentCmdletProvider.GetContentWriterDynamicParameters +[31]: xref:System.Management.Automation.Provider.IContentReader +[32]: xref:System.Management.Automation.Provider.IContentWriter +[33]: xref:System.Management.Automation.Provider.IDynamicPropertyCmdletProvider +[34]: xref:System.Management.Automation.Provider.IDynamicPropertyCmdletProvider.CopyProperty +[35]: xref:System.Management.Automation.Provider.IDynamicPropertyCmdletProvider.CopyPropertyDynamicParameters +[36]: xref:System.Management.Automation.Provider.IDynamicPropertyCmdletProvider.MoveProperty +[37]: xref:System.Management.Automation.Provider.IDynamicPropertyCmdletProvider.MovePropertyDynamicParameters +[38]: xref:System.Management.Automation.Provider.IDynamicPropertyCmdletProvider.NewProperty +[39]: xref:System.Management.Automation.Provider.IDynamicPropertyCmdletProvider.NewPropertyDynamicParameters +[40]: xref:System.Management.Automation.Provider.IDynamicPropertyCmdletProvider.RemoveProperty +[41]: xref:System.Management.Automation.Provider.IDynamicPropertyCmdletProvider.RemovePropertyDynamicParameters +[42]: xref:System.Management.Automation.Provider.IDynamicPropertyCmdletProvider.RenameProperty +[43]: xref:System.Management.Automation.Provider.IDynamicPropertyCmdletProvider.RenamePropertyDynamicParameters +[44]: xref:System.Management.Automation.Provider.IPropertyCmdletProvider +[45]: xref:System.Management.Automation.Provider.IPropertyCmdletProvider.ClearProperty +[46]: xref:System.Management.Automation.Provider.IPropertyCmdletProvider.ClearPropertyDynamicParameters +[47]: xref:System.Management.Automation.Provider.IPropertyCmdletProvider.GetProperty +[48]: xref:System.Management.Automation.Provider.IPropertyCmdletProvider.GetPropertyDynamicParameters +[49]: xref:System.Management.Automation.Provider.IPropertyCmdletProvider.SetProperty +[50]: xref:System.Management.Automation.Provider.IPropertyCmdletProvider.SetPropertyDynamicParameters +[51]: xref:System.Management.Automation.Provider.ItemCmdletProvider +[52]: xref:System.Management.Automation.Provider.ItemCmdletProvider.ClearItem +[53]: xref:System.Management.Automation.Provider.ItemCmdletProvider.ClearItemDynamicParameters +[54]: xref:System.Management.Automation.Provider.ItemCmdletProvider.ExpandPath +[55]: xref:System.Management.Automation.Provider.ItemCmdletProvider.GetItem +[56]: xref:System.Management.Automation.Provider.ItemCmdletProvider.GetItemDynamicParameters +[57]: xref:System.Management.Automation.Provider.ItemCmdletProvider.InvokeDefaultAction +[58]: xref:system.management.automation.provider.itemcmdletprovider.InvokeDefaultActionDynamicParameters +[59]: xref:System.Management.Automation.Provider.ItemCmdletProvider.IsValidPath +[60]: xref:System.Management.Automation.Provider.ItemCmdletProvider.ItemExists +[61]: xref:System.Management.Automation.Provider.ItemCmdletProvider.ItemExistsDynamicParameters +[62]: xref:System.Management.Automation.Provider.ItemCmdletProvider.SetItem +[63]: xref:System.Management.Automation.Provider.ItemCmdletProvider.SetItemDynamicParameters +[64]: xref:System.Management.Automation.Provider.NavigationCmdletProvider +[65]: xref:System.Management.Automation.Provider.NavigationCmdletProvider.GetChildName +[66]: xref:System.Management.Automation.Provider.NavigationCmdletProvider.GetParentPath +[67]: xref:System.Management.Automation.Provider.NavigationCmdletProvider.IsItemContainer +[68]: xref:System.Management.Automation.Provider.NavigationCmdletProvider.MakePath +[69]: xref:System.Management.Automation.Provider.NavigationCmdletProvider.MoveItem +[70]: xref:System.Management.Automation.Provider.NavigationCmdletProvider.MoveItemDynamicParameters +[71]: xref:System.Management.Automation.Provider.NavigationCmdletProvider.NormalizeRelativePath From af4fb463c5f52805483d5f6a44a7cfc8183d42b2 Mon Sep 17 00:00:00 2001 From: Sean Wheeler Date: Wed, 31 Jan 2024 10:30:48 -0600 Subject: [PATCH 3/4] fix xrefs --- .../provider-cmdlet-dynamic-parameters.md | 42 +++---- .../developer/provider/provider-cmdlets.md | 92 +++++++------- .../developer/provider/provider-types.md | 116 +++++++++--------- 3 files changed, 125 insertions(+), 125 deletions(-) diff --git a/reference/docs-conceptual/developer/provider/provider-cmdlet-dynamic-parameters.md b/reference/docs-conceptual/developer/provider/provider-cmdlet-dynamic-parameters.md index 39323368019e..7b7427f95535 100644 --- a/reference/docs-conceptual/developer/provider/provider-cmdlet-dynamic-parameters.md +++ b/reference/docs-conceptual/developer/provider/provider-cmdlet-dynamic-parameters.md @@ -157,25 +157,25 @@ Here is a list of the static parameters that can be used to add dynamic paramete [01]: writing-a-windows-powershell-provider.md -[02]: xref:System.Management.Automation.Provider.ContainerCmdletProvider.CopyItemDynamicParameters -[03]: xref:System.Management.Automation.Provider.ContainerCmdletProvider.GetChildItemsDynamicParameters -[04]: xref:System.Management.Automation.Provider.ContainerCmdletProvider.GetChildNamesDynamicParameters -[05]: xref:System.Management.Automation.Provider.ContainerCmdletProvider.NewItemDynamicParameters -[06]: xref:System.Management.Automation.Provider.ContainerCmdletProvider.RemoveItemDynamicParameters -[07]: xref:System.Management.Automation.Provider.ContainerCmdletProvider.RenameItemDynamicParameters -[08]: xref:System.Management.Automation.Provider.DriveCmdletProvider.NewDriveDynamicParameters -[09]: xref:System.Management.Automation.Provider.IContentCmdletProvider.ClearContentDynamicParameters -[10]: xref:System.Management.Automation.Provider.IContentCmdletProvider.GetContentReaderDynamicParameters -[11]: xref:System.Management.Automation.Provider.IContentCmdletProvider.GetContentWriterDynamicParameters -[12]: xref:System.Management.Automation.Provider.IDynamicPropertyCmdletProvider.NewPropertyDynamicParameters -[13]: xref:System.Management.Automation.Provider.IDynamicPropertyCmdletProvider.RemovePropertyDynamicParameters -[14]: xref:System.Management.Automation.Provider.IDynamicPropertyCmdletProvider.RenamePropertyDynamicParameters -[15]: xref:System.Management.Automation.Provider.IPropertyCmdletProvider.ClearPropertyDynamicParameters -[16]: xref:System.Management.Automation.Provider.IPropertyCmdletProvider.GetPropertyDynamicParameters -[17]: xref:System.Management.Automation.Provider.IPropertyCmdletProvider.SetPropertyDynamicParameters -[18]: xref:System.Management.Automation.Provider.ItemCmdletProvider.ClearItemDynamicParameters -[19]: xref:System.Management.Automation.Provider.ItemCmdletProvider.GetItemDynamicParameters -[20]: xref:System.Management.Automation.Provider.ItemCmdletProvider.InvokeDefaultActionDynamicParameters -[21]: xref:System.Management.Automation.Provider.ItemCmdletProvider.SetItemDynamicParameters -[22]: xref:System.Management.Automation.Provider.NavigationCmdletProvider.MoveItemDynamicParameters +[02]: xref:System.Management.Automation.Provider.ContainerCmdletProvider.CopyItemDynamicParameters* +[03]: xref:System.Management.Automation.Provider.ContainerCmdletProvider.GetChildItemsDynamicParameters* +[04]: xref:System.Management.Automation.Provider.ContainerCmdletProvider.GetChildNamesDynamicParameters* +[05]: xref:System.Management.Automation.Provider.ContainerCmdletProvider.NewItemDynamicParameters* +[06]: xref:System.Management.Automation.Provider.ContainerCmdletProvider.RemoveItemDynamicParameters* +[07]: xref:System.Management.Automation.Provider.ContainerCmdletProvider.RenameItemDynamicParameters* +[08]: xref:System.Management.Automation.Provider.DriveCmdletProvider.NewDriveDynamicParameters* +[09]: xref:System.Management.Automation.Provider.IContentCmdletProvider.ClearContentDynamicParameters* +[10]: xref:System.Management.Automation.Provider.IContentCmdletProvider.GetContentReaderDynamicParameters* +[11]: xref:System.Management.Automation.Provider.IContentCmdletProvider.GetContentWriterDynamicParameters* +[12]: xref:System.Management.Automation.Provider.IDynamicPropertyCmdletProvider.NewPropertyDynamicParameters* +[13]: xref:System.Management.Automation.Provider.IDynamicPropertyCmdletProvider.RemovePropertyDynamicParameters* +[14]: xref:System.Management.Automation.Provider.IDynamicPropertyCmdletProvider.RenamePropertyDynamicParameters* +[15]: xref:System.Management.Automation.Provider.IPropertyCmdletProvider.ClearPropertyDynamicParameters* +[16]: xref:System.Management.Automation.Provider.IPropertyCmdletProvider.GetPropertyDynamicParameters* +[17]: xref:System.Management.Automation.Provider.IPropertyCmdletProvider.SetPropertyDynamicParameters* +[18]: xref:System.Management.Automation.Provider.ItemCmdletProvider.ClearItemDynamicParameters* +[19]: xref:System.Management.Automation.Provider.ItemCmdletProvider.GetItemDynamicParameters* +[20]: xref:System.Management.Automation.Provider.ItemCmdletProvider.InvokeDefaultActionDynamicParameters* +[21]: xref:System.Management.Automation.Provider.ItemCmdletProvider.SetItemDynamicParameters* +[22]: xref:System.Management.Automation.Provider.NavigationCmdletProvider.MoveItemDynamicParameters* [23]: xref:System.Management.Automation.PSDriveInfo diff --git a/reference/docs-conceptual/developer/provider/provider-cmdlets.md b/reference/docs-conceptual/developer/provider/provider-cmdlets.md index db608354772d..5bf88b790d70 100644 --- a/reference/docs-conceptual/developer/provider/provider-cmdlets.md +++ b/reference/docs-conceptual/developer/provider/provider-cmdlets.md @@ -288,58 +288,58 @@ overwrite any methods to support this cmdlet. [01]: xref:System.Management.Automation.Provider.ContainerCmdletProvider -[02]: xref:System.Management.Automation.Provider.ContainerCmdletProvider.CopyItem -[03]: xref:System.Management.Automation.Provider.ContainerCmdletProvider.CopyItemDynamicParameters -[04]: xref:System.Management.Automation.Provider.ContainerCmdletProvider.GetChildItems -[05]: xref:System.Management.Automation.Provider.ContainerCmdletProvider.GetChildItemsDynamicParameters -[06]: xref:System.Management.Automation.Provider.ContainerCmdletProvider.GetChildNames -[07]: xref:System.Management.Automation.Provider.ContainerCmdletProvider.GetChildNamesDynamicParameters -[08]: xref:System.Management.Automation.Provider.ContainerCmdletProvider.RemoveItem -[09]: xref:System.Management.Automation.Provider.ContainerCmdletProvider.RemoveItemDynamicParameters -[10]: xref:System.Management.Automation.Provider.ContainerCmdletProvider.RenameItem -[11]: xref:System.Management.Automation.Provider.ContainerCmdletProvider.RenameItemDynamicParameters +[02]: xref:System.Management.Automation.Provider.ContainerCmdletProvider.CopyItem* +[03]: xref:System.Management.Automation.Provider.ContainerCmdletProvider.CopyItemDynamicParameters* +[04]: xref:System.Management.Automation.Provider.ContainerCmdletProvider.GetChildItems* +[05]: xref:System.Management.Automation.Provider.ContainerCmdletProvider.GetChildItemsDynamicParameters* +[06]: xref:System.Management.Automation.Provider.ContainerCmdletProvider.GetChildNames* +[07]: xref:System.Management.Automation.Provider.ContainerCmdletProvider.GetChildNamesDynamicParameters* +[08]: xref:System.Management.Automation.Provider.ContainerCmdletProvider.RemoveItem* +[09]: xref:System.Management.Automation.Provider.ContainerCmdletProvider.RemoveItemDynamicParameters* +[10]: xref:System.Management.Automation.Provider.ContainerCmdletProvider.RenameItem* +[11]: xref:System.Management.Automation.Provider.ContainerCmdletProvider.RenameItemDynamicParameters* [12]: xref:System.Management.Automation.Provider.DriveCmdletProvider -[13]: xref:System.Management.Automation.Provider.DriveCmdletProvider.NewDrive -[14]: xref:System.Management.Automation.Provider.DriveCmdletProvider.NewDriveDynamicParameters -[15]: xref:System.Management.Automation.Provider.DriveCmdletProvider.RemoveDrive +[13]: xref:System.Management.Automation.Provider.DriveCmdletProvider.NewDrive* +[14]: xref:System.Management.Automation.Provider.DriveCmdletProvider.NewDriveDynamicParameters* +[15]: xref:System.Management.Automation.Provider.DriveCmdletProvider.RemoveDrive* [16]: xref:System.Management.Automation.Provider.IContentCmdletProvider -[17]: xref:System.Management.Automation.Provider.IContentCmdletProvider.ClearContent -[18]: xref:System.Management.Automation.Provider.IContentCmdletProvider.ClearContentDynamicParameters -[19]: xref:System.Management.Automation.Provider.IContentCmdletProvider.GetContentReader -[20]: xref:System.Management.Automation.Provider.IContentCmdletProvider.GetContentReaderDynamicParameters -[21]: xref:System.Management.Automation.Provider.IContentCmdletProvider.GetContentWriter -[22]: xref:System.Management.Automation.Provider.IContentCmdletProvider.GetContentWriterDynamicParameters +[17]: xref:System.Management.Automation.Provider.IContentCmdletProvider.ClearContent* +[18]: xref:System.Management.Automation.Provider.IContentCmdletProvider.ClearContentDynamicParameters* +[19]: xref:System.Management.Automation.Provider.IContentCmdletProvider.GetContentReader* +[20]: xref:System.Management.Automation.Provider.IContentCmdletProvider.GetContentReaderDynamicParameters* +[21]: xref:System.Management.Automation.Provider.IContentCmdletProvider.GetContentWriter* +[22]: xref:System.Management.Automation.Provider.IContentCmdletProvider.GetContentWriterDynamicParameters* [23]: xref:System.Management.Automation.Provider.IContentReader [24]: xref:System.Management.Automation.Provider.IContentWriter [25]: xref:System.Management.Automation.Provider.IDynamicPropertyCmdletProvider -[26]: xref:System.Management.Automation.Provider.IDynamicPropertyCmdletProvider.CopyProperty -[27]: xref:System.Management.Automation.Provider.IDynamicPropertyCmdletProvider.CopyPropertyDynamicParameters -[28]: xref:System.Management.Automation.Provider.IDynamicPropertyCmdletProvider.MoveProperty -[29]: xref:System.Management.Automation.Provider.IDynamicPropertyCmdletProvider.MovePropertyDynamicParameters -[30]: xref:System.Management.Automation.Provider.IDynamicPropertyCmdletProvider.NewProperty -[31]: xref:System.Management.Automation.Provider.IDynamicPropertyCmdletProvider.NewPropertyDynamicParameters -[32]: xref:System.Management.Automation.Provider.IDynamicPropertyCmdletProvider.RemoveProperty -[33]: xref:System.Management.Automation.Provider.IDynamicPropertyCmdletProvider.RemovePropertyDynamicParameters -[34]: xref:System.Management.Automation.Provider.IDynamicPropertyCmdletProvider.RenameProperty -[35]: xref:System.Management.Automation.Provider.IDynamicPropertyCmdletProvider.RenamePropertyDynamicParameters +[26]: xref:System.Management.Automation.Provider.IDynamicPropertyCmdletProvider.CopyProperty* +[27]: xref:System.Management.Automation.Provider.IDynamicPropertyCmdletProvider.CopyPropertyDynamicParameters* +[28]: xref:System.Management.Automation.Provider.IDynamicPropertyCmdletProvider.MoveProperty* +[29]: xref:System.Management.Automation.Provider.IDynamicPropertyCmdletProvider.MovePropertyDynamicParameters* +[30]: xref:System.Management.Automation.Provider.IDynamicPropertyCmdletProvider.NewProperty* +[31]: xref:System.Management.Automation.Provider.IDynamicPropertyCmdletProvider.NewPropertyDynamicParameters* +[32]: xref:System.Management.Automation.Provider.IDynamicPropertyCmdletProvider.RemoveProperty* +[33]: xref:System.Management.Automation.Provider.IDynamicPropertyCmdletProvider.RemovePropertyDynamicParameters* +[34]: xref:System.Management.Automation.Provider.IDynamicPropertyCmdletProvider.RenameProperty* +[35]: xref:System.Management.Automation.Provider.IDynamicPropertyCmdletProvider.RenamePropertyDynamicParameters* [36]: xref:System.Management.Automation.Provider.IPropertyCmdletProvider -[37]: xref:System.Management.Automation.Provider.IPropertyCmdletProvider.ClearProperty -[38]: xref:System.Management.Automation.Provider.IPropertyCmdletProvider.ClearPropertyDynamicParameters -[39]: xref:System.Management.Automation.Provider.IPropertyCmdletProvider.GetProperty -[40]: xref:System.Management.Automation.Provider.IPropertyCmdletProvider.GetPropertyDynamicParameters -[41]: xref:System.Management.Automation.Provider.IPropertyCmdletProvider.SetProperty -[42]: xref:System.Management.Automation.Provider.IPropertyCmdletProvider.SetPropertyDynamicParameters +[37]: xref:System.Management.Automation.Provider.IPropertyCmdletProvider.ClearProperty* +[38]: xref:System.Management.Automation.Provider.IPropertyCmdletProvider.ClearPropertyDynamicParameters* +[39]: xref:System.Management.Automation.Provider.IPropertyCmdletProvider.GetProperty* +[40]: xref:System.Management.Automation.Provider.IPropertyCmdletProvider.GetPropertyDynamicParameters* +[41]: xref:System.Management.Automation.Provider.IPropertyCmdletProvider.SetProperty* +[42]: xref:System.Management.Automation.Provider.IPropertyCmdletProvider.SetPropertyDynamicParameters* [43]: xref:System.Management.Automation.Provider.ItemCmdletProvider -[44]: xref:System.Management.Automation.Provider.ItemCmdletProvider.ClearItem -[45]: xref:System.Management.Automation.Provider.ItemCmdletProvider.ClearItemDynamicParameters -[46]: xref:System.Management.Automation.Provider.ItemCmdletProvider.GetItem +[44]: xref:System.Management.Automation.Provider.ItemCmdletProvider.ClearItem* +[45]: xref:System.Management.Automation.Provider.ItemCmdletProvider.ClearItemDynamicParameters* +[46]: xref:System.Management.Automation.Provider.ItemCmdletProvider.GetItem* [47]: xref:System.Management.Automation.Provider.ItemCmdletProvider.GetItemDynamicParameters -[48]: xref:System.Management.Automation.Provider.ItemCmdletProvider.InvokeDefaultAction -[49]: xref:System.Management.Automation.Provider.ItemCmdletProvider.ItemExists -[50]: xref:System.Management.Automation.Provider.ItemCmdletProvider.ItemExistsDynamicParameters -[51]: xref:System.Management.Automation.Provider.ItemCmdletProvider.SetItem -[52]: xref:System.Management.Automation.Provider.ItemCmdletProvider.SetItemDynamicParameters +[48]: xref:System.Management.Automation.Provider.ItemCmdletProvider.InvokeDefaultAction* +[49]: xref:System.Management.Automation.Provider.ItemCmdletProvider.ItemExists* +[50]: xref:System.Management.Automation.Provider.ItemCmdletProvider.ItemExistsDynamicParameters* +[51]: xref:System.Management.Automation.Provider.ItemCmdletProvider.SetItem* +[52]: xref:System.Management.Automation.Provider.ItemCmdletProvider.SetItemDynamicParameters* [53]: xref:System.Management.Automation.Provider.NavigationCmdletProvider -[54]: xref:System.Management.Automation.Provider.NavigationCmdletProvider.MakePath -[55]: xref:System.Management.Automation.Provider.NavigationCmdletProvider.MoveItem -[56]: xref:System.Management.Automation.Provider.NavigationCmdletProvider.MoveItemDynamicParameters +[54]: xref:System.Management.Automation.Provider.NavigationCmdletProvider.MakePath* +[55]: xref:System.Management.Automation.Provider.NavigationCmdletProvider.MoveItem* +[56]: xref:System.Management.Automation.Provider.NavigationCmdletProvider.MoveItemDynamicParameters* diff --git a/reference/docs-conceptual/developer/provider/provider-types.md b/reference/docs-conceptual/developer/provider/provider-types.md index 99662e92ada4..6e89dce21387 100644 --- a/reference/docs-conceptual/developer/provider/provider-types.md +++ b/reference/docs-conceptual/developer/provider/provider-types.md @@ -258,70 +258,70 @@ specific provider cmdlets: [02]: /previous-versions//ee126189(v=vs.85) [03]: writing-a-windows-powershell-provider.md [04]: xref:System.Management.Automation.Provider.ContainerCmdletProvider -[05]: xref:System.Management.Automation.Provider.ContainerCmdletProvider.ConvertPath -[06]: xref:System.Management.Automation.Provider.ContainerCmdletProvider.CopyItem -[07]: xref:System.Management.Automation.Provider.ContainerCmdletProvider.CopyItemDynamicParameters -[08]: xref:System.Management.Automation.Provider.ContainerCmdletProvider.GetChildItems -[09]: xref:System.Management.Automation.Provider.ContainerCmdletProvider.GetChildItemsDynamicParameters -[10]: xref:System.Management.Automation.Provider.ContainerCmdletProvider.GetChildNames -[11]: xref:System.Management.Automation.Provider.ContainerCmdletProvider.GetChildNamesDynamicParameters -[12]: xref:System.Management.Automation.Provider.ContainerCmdletProvider.HasChildItems -[13]: xref:System.Management.Automation.Provider.ContainerCmdletProvider.NewItem -[14]: xref:System.Management.Automation.Provider.ContainerCmdletProvider.NewItemDynamicParameters -[15]: xref:System.Management.Automation.Provider.ContainerCmdletProvider.RemoveItem -[16]: xref:System.Management.Automation.Provider.ContainerCmdletProvider.RemoveItemDynamicParameters -[17]: xref:System.Management.Automation.Provider.ContainerCmdletProvider.RenameItem -[18]: xref:System.Management.Automation.Provider.ContainerCmdletProvider.RenameItemDynamicParameters +[05]: xref:System.Management.Automation.Provider.ContainerCmdletProvider.ConvertPath* +[06]: xref:System.Management.Automation.Provider.ContainerCmdletProvider.CopyItem* +[07]: xref:System.Management.Automation.Provider.ContainerCmdletProvider.CopyItemDynamicParameters* +[08]: xref:System.Management.Automation.Provider.ContainerCmdletProvider.GetChildItems* +[09]: xref:System.Management.Automation.Provider.ContainerCmdletProvider.GetChildItemsDynamicParameters* +[10]: xref:System.Management.Automation.Provider.ContainerCmdletProvider.GetChildNames* +[11]: xref:System.Management.Automation.Provider.ContainerCmdletProvider.GetChildNamesDynamicParameters* +[12]: xref:System.Management.Automation.Provider.ContainerCmdletProvider.HasChildItems* +[13]: xref:System.Management.Automation.Provider.ContainerCmdletProvider.NewItem* +[14]: xref:System.Management.Automation.Provider.ContainerCmdletProvider.NewItemDynamicParameters* +[15]: xref:System.Management.Automation.Provider.ContainerCmdletProvider.RemoveItem* +[16]: xref:System.Management.Automation.Provider.ContainerCmdletProvider.RemoveItemDynamicParameters* +[17]: xref:System.Management.Automation.Provider.ContainerCmdletProvider.RenameItem* +[18]: xref:System.Management.Automation.Provider.ContainerCmdletProvider.RenameItemDynamicParameters* [19]: xref:System.Management.Automation.Provider.DriveCmdletProvider [20]: xref:System.Management.Automation.Provider.DriveCmdletProvider.InitializeDefaultDrives -[21]: xref:System.Management.Automation.Provider.DriveCmdletProvider.NewDrive -[22]: xref:System.Management.Automation.Provider.DriveCmdletProvider.NewDriveDynamicParameters -[23]: xref:System.Management.Automation.Provider.DriveCmdletProvider.RemoveDrive +[21]: xref:System.Management.Automation.Provider.DriveCmdletProvider.NewDrive* +[22]: xref:System.Management.Automation.Provider.DriveCmdletProvider.NewDriveDynamicParameters* +[23]: xref:System.Management.Automation.Provider.DriveCmdletProvider.RemoveDrive* [24]: xref:System.Management.Automation.Provider.IContentCmdletProvider -[25]: xref:System.Management.Automation.Provider.IContentCmdletProvider.ClearContent -[26]: xref:System.Management.Automation.Provider.IContentCmdletProvider.ClearContentDynamicParameters -[27]: xref:System.Management.Automation.Provider.IContentCmdletProvider.GetContentReader -[28]: xref:System.Management.Automation.Provider.IContentCmdletProvider.GetContentReaderDynamicParameters -[29]: xref:System.Management.Automation.Provider.IContentCmdletProvider.GetContentWriter -[30]: xref:System.Management.Automation.Provider.IContentCmdletProvider.GetContentWriterDynamicParameters +[25]: xref:System.Management.Automation.Provider.IContentCmdletProvider.ClearContent* +[26]: xref:System.Management.Automation.Provider.IContentCmdletProvider.ClearContentDynamicParameters* +[27]: xref:System.Management.Automation.Provider.IContentCmdletProvider.GetContentReader* +[28]: xref:System.Management.Automation.Provider.IContentCmdletProvider.GetContentReaderDynamicParameters* +[29]: xref:System.Management.Automation.Provider.IContentCmdletProvider.GetContentWriter* +[30]: xref:System.Management.Automation.Provider.IContentCmdletProvider.GetContentWriterDynamicParameters* [31]: xref:System.Management.Automation.Provider.IContentReader [32]: xref:System.Management.Automation.Provider.IContentWriter [33]: xref:System.Management.Automation.Provider.IDynamicPropertyCmdletProvider -[34]: xref:System.Management.Automation.Provider.IDynamicPropertyCmdletProvider.CopyProperty -[35]: xref:System.Management.Automation.Provider.IDynamicPropertyCmdletProvider.CopyPropertyDynamicParameters -[36]: xref:System.Management.Automation.Provider.IDynamicPropertyCmdletProvider.MoveProperty -[37]: xref:System.Management.Automation.Provider.IDynamicPropertyCmdletProvider.MovePropertyDynamicParameters -[38]: xref:System.Management.Automation.Provider.IDynamicPropertyCmdletProvider.NewProperty -[39]: xref:System.Management.Automation.Provider.IDynamicPropertyCmdletProvider.NewPropertyDynamicParameters -[40]: xref:System.Management.Automation.Provider.IDynamicPropertyCmdletProvider.RemoveProperty -[41]: xref:System.Management.Automation.Provider.IDynamicPropertyCmdletProvider.RemovePropertyDynamicParameters -[42]: xref:System.Management.Automation.Provider.IDynamicPropertyCmdletProvider.RenameProperty -[43]: xref:System.Management.Automation.Provider.IDynamicPropertyCmdletProvider.RenamePropertyDynamicParameters +[34]: xref:System.Management.Automation.Provider.IDynamicPropertyCmdletProvider.CopyProperty* +[35]: xref:System.Management.Automation.Provider.IDynamicPropertyCmdletProvider.CopyPropertyDynamicParameters* +[36]: xref:System.Management.Automation.Provider.IDynamicPropertyCmdletProvider.MoveProperty* +[37]: xref:System.Management.Automation.Provider.IDynamicPropertyCmdletProvider.MovePropertyDynamicParameters* +[38]: xref:System.Management.Automation.Provider.IDynamicPropertyCmdletProvider.NewProperty* +[39]: xref:System.Management.Automation.Provider.IDynamicPropertyCmdletProvider.NewPropertyDynamicParameters* +[40]: xref:System.Management.Automation.Provider.IDynamicPropertyCmdletProvider.RemoveProperty* +[41]: xref:System.Management.Automation.Provider.IDynamicPropertyCmdletProvider.RemovePropertyDynamicParameters* +[42]: xref:System.Management.Automation.Provider.IDynamicPropertyCmdletProvider.RenameProperty* +[43]: xref:System.Management.Automation.Provider.IDynamicPropertyCmdletProvider.RenamePropertyDynamicParameters* [44]: xref:System.Management.Automation.Provider.IPropertyCmdletProvider -[45]: xref:System.Management.Automation.Provider.IPropertyCmdletProvider.ClearProperty -[46]: xref:System.Management.Automation.Provider.IPropertyCmdletProvider.ClearPropertyDynamicParameters -[47]: xref:System.Management.Automation.Provider.IPropertyCmdletProvider.GetProperty -[48]: xref:System.Management.Automation.Provider.IPropertyCmdletProvider.GetPropertyDynamicParameters -[49]: xref:System.Management.Automation.Provider.IPropertyCmdletProvider.SetProperty -[50]: xref:System.Management.Automation.Provider.IPropertyCmdletProvider.SetPropertyDynamicParameters +[45]: xref:System.Management.Automation.Provider.IPropertyCmdletProvider.ClearProperty* +[46]: xref:System.Management.Automation.Provider.IPropertyCmdletProvider.ClearPropertyDynamicParameters* +[47]: xref:System.Management.Automation.Provider.IPropertyCmdletProvider.GetProperty* +[48]: xref:System.Management.Automation.Provider.IPropertyCmdletProvider.GetPropertyDynamicParameters* +[49]: xref:System.Management.Automation.Provider.IPropertyCmdletProvider.SetProperty* +[50]: xref:System.Management.Automation.Provider.IPropertyCmdletProvider.SetPropertyDynamicParameters* [51]: xref:System.Management.Automation.Provider.ItemCmdletProvider -[52]: xref:System.Management.Automation.Provider.ItemCmdletProvider.ClearItem -[53]: xref:System.Management.Automation.Provider.ItemCmdletProvider.ClearItemDynamicParameters -[54]: xref:System.Management.Automation.Provider.ItemCmdletProvider.ExpandPath -[55]: xref:System.Management.Automation.Provider.ItemCmdletProvider.GetItem -[56]: xref:System.Management.Automation.Provider.ItemCmdletProvider.GetItemDynamicParameters -[57]: xref:System.Management.Automation.Provider.ItemCmdletProvider.InvokeDefaultAction -[58]: xref:system.management.automation.provider.itemcmdletprovider.InvokeDefaultActionDynamicParameters -[59]: xref:System.Management.Automation.Provider.ItemCmdletProvider.IsValidPath -[60]: xref:System.Management.Automation.Provider.ItemCmdletProvider.ItemExists -[61]: xref:System.Management.Automation.Provider.ItemCmdletProvider.ItemExistsDynamicParameters -[62]: xref:System.Management.Automation.Provider.ItemCmdletProvider.SetItem -[63]: xref:System.Management.Automation.Provider.ItemCmdletProvider.SetItemDynamicParameters +[52]: xref:System.Management.Automation.Provider.ItemCmdletProvider.ClearItem* +[53]: xref:System.Management.Automation.Provider.ItemCmdletProvider.ClearItemDynamicParameters* +[54]: xref:System.Management.Automation.Provider.ItemCmdletProvider.ExpandPath* +[55]: xref:System.Management.Automation.Provider.ItemCmdletProvider.GetItem* +[56]: xref:System.Management.Automation.Provider.ItemCmdletProvider.GetItemDynamicParameters* +[57]: xref:System.Management.Automation.Provider.ItemCmdletProvider.InvokeDefaultAction* +[58]: xref:system.management.automation.provider.itemcmdletprovider.InvokeDefaultActionDynamicParameters* +[59]: xref:System.Management.Automation.Provider.ItemCmdletProvider.IsValidPath* +[60]: xref:System.Management.Automation.Provider.ItemCmdletProvider.ItemExists* +[61]: xref:System.Management.Automation.Provider.ItemCmdletProvider.ItemExistsDynamicParameters* +[62]: xref:System.Management.Automation.Provider.ItemCmdletProvider.SetItem* +[63]: xref:System.Management.Automation.Provider.ItemCmdletProvider.SetItemDynamicParameters* [64]: xref:System.Management.Automation.Provider.NavigationCmdletProvider -[65]: xref:System.Management.Automation.Provider.NavigationCmdletProvider.GetChildName -[66]: xref:System.Management.Automation.Provider.NavigationCmdletProvider.GetParentPath -[67]: xref:System.Management.Automation.Provider.NavigationCmdletProvider.IsItemContainer -[68]: xref:System.Management.Automation.Provider.NavigationCmdletProvider.MakePath -[69]: xref:System.Management.Automation.Provider.NavigationCmdletProvider.MoveItem -[70]: xref:System.Management.Automation.Provider.NavigationCmdletProvider.MoveItemDynamicParameters -[71]: xref:System.Management.Automation.Provider.NavigationCmdletProvider.NormalizeRelativePath +[65]: xref:System.Management.Automation.Provider.NavigationCmdletProvider.GetChildName* +[66]: xref:System.Management.Automation.Provider.NavigationCmdletProvider.GetParentPath* +[67]: xref:System.Management.Automation.Provider.NavigationCmdletProvider.IsItemContainer* +[68]: xref:System.Management.Automation.Provider.NavigationCmdletProvider.MakePath* +[69]: xref:System.Management.Automation.Provider.NavigationCmdletProvider.MoveItem* +[70]: xref:System.Management.Automation.Provider.NavigationCmdletProvider.MoveItemDynamicParameters* +[71]: xref:System.Management.Automation.Provider.NavigationCmdletProvider.NormalizeRelativePath* From 400a1c79aec02c7acb923fd187dcba386d9d57eb Mon Sep 17 00:00:00 2001 From: Sean Wheeler Date: Wed, 31 Jan 2024 10:38:20 -0600 Subject: [PATCH 4/4] Fix xrefs --- .../docs-conceptual/developer/provider/provider-cmdlets.md | 2 +- reference/docs-conceptual/developer/provider/provider-types.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/reference/docs-conceptual/developer/provider/provider-cmdlets.md b/reference/docs-conceptual/developer/provider/provider-cmdlets.md index 5bf88b790d70..012f85b3b123 100644 --- a/reference/docs-conceptual/developer/provider/provider-cmdlets.md +++ b/reference/docs-conceptual/developer/provider/provider-cmdlets.md @@ -333,7 +333,7 @@ overwrite any methods to support this cmdlet. [44]: xref:System.Management.Automation.Provider.ItemCmdletProvider.ClearItem* [45]: xref:System.Management.Automation.Provider.ItemCmdletProvider.ClearItemDynamicParameters* [46]: xref:System.Management.Automation.Provider.ItemCmdletProvider.GetItem* -[47]: xref:System.Management.Automation.Provider.ItemCmdletProvider.GetItemDynamicParameters +[47]: xref:System.Management.Automation.Provider.ItemCmdletProvider.GetItemDynamicParameters* [48]: xref:System.Management.Automation.Provider.ItemCmdletProvider.InvokeDefaultAction* [49]: xref:System.Management.Automation.Provider.ItemCmdletProvider.ItemExists* [50]: xref:System.Management.Automation.Provider.ItemCmdletProvider.ItemExistsDynamicParameters* diff --git a/reference/docs-conceptual/developer/provider/provider-types.md b/reference/docs-conceptual/developer/provider/provider-types.md index 6e89dce21387..4ba96b40b6ae 100644 --- a/reference/docs-conceptual/developer/provider/provider-types.md +++ b/reference/docs-conceptual/developer/provider/provider-types.md @@ -311,7 +311,7 @@ specific provider cmdlets: [55]: xref:System.Management.Automation.Provider.ItemCmdletProvider.GetItem* [56]: xref:System.Management.Automation.Provider.ItemCmdletProvider.GetItemDynamicParameters* [57]: xref:System.Management.Automation.Provider.ItemCmdletProvider.InvokeDefaultAction* -[58]: xref:system.management.automation.provider.itemcmdletprovider.InvokeDefaultActionDynamicParameters* +[58]: xref:System.Management.Automation.Provider.ItemCmdletProvider.InvokeDefaultActionDynamicParameters* [59]: xref:System.Management.Automation.Provider.ItemCmdletProvider.IsValidPath* [60]: xref:System.Management.Automation.Provider.ItemCmdletProvider.ItemExists* [61]: xref:System.Management.Automation.Provider.ItemCmdletProvider.ItemExistsDynamicParameters*