Share via

PSObject.Copy Method


Returns a copy of this PSObject. This will copy the BaseObject if it is a value type, and use BaseObject.Clone() for the new PSObject, if the BaseObject is ICloneable.

 virtual System::Management::Automation::PSObject ^ Copy();
public virtual System.Management.Automation.PSObject Copy ();
abstract member Copy : unit -> System.Management.Automation.PSObject
override this.Copy : unit -> System.Management.Automation.PSObject
Public Overridable Function Copy () As PSObject


A copy of this object.

Applies to