PSModuleInfo.NewBoundScriptBlock(ScriptBlock) Method
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
- scriptBlockToBind
- ScriptBlock
The original scriptblock.
The new bound scriptblock.
Product | Versions |
---|---|
PowerShell SDK | 7.2.0, 7.3.0, 7.4.0 |
Windows PowerShell | 5.1.0.0 |