ContainerCmdletProvider.RemoveItemDynamicParameters
Method
Definition
Gives the provider an opportunity to attach additional parameters to the remove-item cmdlet.
protected virtual object RemoveItemDynamicParameters (string path, bool recurse);
Parameters
- path
- String
If the path was specified on the command line, this is the path to the item to get the dynamic parameters for.
- recurse
- Boolean
True if all children in a subtree should be removed, false if only a single level of children should be removed. This parameter should only be true for NavigationCmdletProvider and its derived classes.
Returns
Overrides of this method should return an object that has properties and fields decorated with parsing attributes similar to a cmdlet class or a RuntimeDefinedParameterDictionary.
The default implemenation returns null. (no additional parameters)