PSCommand.Clone Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a shallow copy of the current PSCommand.
C++
public:
System::Management::Automation::PSCommand ^ Clone();
public System.Management.Automation.PSCommand Clone ();
member this.Clone : unit -> System.Management.Automation.PSCommand
Public Function Clone () As PSCommand
A shallow copy of the current PSCommand
Proizvod | Verzije |
---|---|
PowerShell SDK | 7.2.0, 7.3.0, 7.4.0 |
Windows PowerShell | 5.1.0.0 |