ScriptBlock.GetNewClosure 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 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