Compartilhar via


ScriptBlock.GetNewClosure Method

Definition

Returns a new scriptblock bound to a module. Any local variables in the callers context will be copied into the module.

public:
 System::Management::Automation::ScriptBlock ^ GetNewClosure();
public System.Management.Automation.ScriptBlock GetNewClosure ();
member this.GetNewClosure : unit -> System.Management.Automation.ScriptBlock
Public Function GetNewClosure () As ScriptBlock

Returns

Applies to