Condividi tramite


PSObject.Copy Method

Definition

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.

Applies to