Bagikan melalui


ContainerCmdletProvider.CopyItemDynamicParameters Method

Definition

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

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

destination
String

The path of the item to copy to.

recurse
Boolean

Tells the provider to recurse sub-containers when copying.

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