PSCommand.Clone Method

Definition

Creates a shallow copy of the current PSCommand.

C++
public:
 System::Management::Automation::PSCommand ^ Clone();

Returns

A shallow copy of the current PSCommand

Applies to

Proizvod Verzije
PowerShell SDK 7.2.0, 7.3.0, 7.4.0
Windows PowerShell 5.1.0.0