Partilhar via


ContainerCmdletProvider.RenameItemDynamicParameters(String, String) Method

Definition

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

protected:
 virtual System::Object ^ RenameItemDynamicParameters(System::String ^ path, System::String ^ newName);
protected:
 virtual Platform::Object ^ RenameItemDynamicParameters(Platform::String ^ path, Platform::String ^ newName);
 virtual winrt::Windows::Foundation::IInspectable RenameItemDynamicParameters(std::wstring const & path, std::wstring const & newName);
protected virtual object RenameItemDynamicParameters (string path, string newName);
abstract member RenameItemDynamicParameters : string * string -> obj
override this.RenameItemDynamicParameters : string * string -> obj
Protected Overridable Function RenameItemDynamicParameters (path As String, newName As String) 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.

newName
String

The name to which the item should be renamed. This name should always be relative to the parent container.

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