PSModuleInfo.NewBoundScriptBlock(ScriptBlock) 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 this module instance.
public:
System::Management::Automation::ScriptBlock ^ NewBoundScriptBlock(System::Management::Automation::ScriptBlock ^ scriptBlockToBind);
public System.Management.Automation.ScriptBlock NewBoundScriptBlock (System.Management.Automation.ScriptBlock scriptBlockToBind);
member this.NewBoundScriptBlock : System.Management.Automation.ScriptBlock -> System.Management.Automation.ScriptBlock
Public Function NewBoundScriptBlock (scriptBlockToBind As ScriptBlock) As ScriptBlock
Parameters
- scriptBlockToBind
- ScriptBlock
The original scriptblock.
Returns
The new bound scriptblock.