ContainerCmdletProvider.GetChildItemsDynamicParameters Method

Definition

Gives the provider an opportunity to attach additional parameters to the get-childitem cmdlet.

C++
protected:
 virtual System::Object ^ GetChildItemsDynamicParameters(System::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 implementation returns null. (no additional parameters)

Applies to

Product Versions
PowerShell SDK 7.2.0, 7.3.0, 7.4.0
Windows PowerShell 5.1.0.0