PSObject.Copy Method
Definition
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.
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.
public:
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
Returns
A copy of this object.