Ast.Copy Method

Definition

Duplicates the AST, allowing it to be composed into other ASTs.

C++
public:
 abstract System::Management::Automation::Language::Ast ^ Copy();

Returns

Ast

A copy of the AST, with the link to the previous parent removed.

Applies to

Producto Versiones
PowerShell SDK 7.2.0, 7.3.0, 7.4.0
Windows PowerShell 5.1.0.0