Partager via


ContainerCmdletProvider.GetChildItemsDynamicParameters Method

Definition

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

protected:
 virtual System::Object ^ GetChildItemsDynamicParameters(System::String ^ path, bool recurse);
protected:
 virtual Platform::Object ^ GetChildItemsDynamicParameters(Platform::String ^ path, bool recurse);
 virtual winrt::Windows::Foundation::IInspectable GetChildItemsDynamicParameters(std::wstring const & path, bool recurse);
protected virtual object GetChildItemsDynamicParameters (string path, bool recurse);
abstract member GetChildItemsDynamicParameters : string * bool -> obj
override this.GetChildItemsDynamicParameters : string * bool -> obj
Protected Overridable Function GetChildItemsDynamicParameters (path As String, recurse As Boolean) As Object

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