ContainerCmdletProvider.GetChildItemsDynamicParameters
Method
Definition
Gives the provider an opportunity to attach additional parameters to the get-childitem cmdlet.
protected virtual object GetChildItemsDynamicParameters (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 retrieved, false if only a single level of children should be retrieved. This parameter should only be true for the NavigationCmdletProvider derived class.
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)