Delen via


ContainerCmdletProvider.RemoveItemDynamicParameters(String, Boolean) Method

Definition

Gives the provider an opportunity to attach additional parameters to the remove-item cmdlet.

protected:
 virtual System::Object ^ RemoveItemDynamicParameters(System::String ^ path, bool recurse);
protected:
 virtual Platform::Object ^ RemoveItemDynamicParameters(Platform::String ^ path, bool recurse);
 virtual winrt::Windows::Foundation::IInspectable RemoveItemDynamicParameters(std::wstring const & path, bool recurse);
protected virtual object RemoveItemDynamicParameters (string path, bool recurse);
abstract member RemoveItemDynamicParameters : string * bool -> obj
override this.RemoveItemDynamicParameters : string * bool -> obj
Protected Overridable Function RemoveItemDynamicParameters (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 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 implementation returns null. (no additional parameters)

Applies to