PSModuleInfo.NewBoundScriptBlock(ScriptBlock) Method

Definition

Returns a new scriptblock bound to this module instance.

public:
 System::Management::Automation::ScriptBlock ^ NewBoundScriptBlock(System::Management::Automation::ScriptBlock ^ scriptBlockToBind);

Parameters

scriptBlockToBind
ScriptBlock

The original scriptblock.

Returns

The new bound scriptblock.

Applies to

Product Versions
PowerShell SDK 7.2.0, 7.3.0, 7.4.0
Windows PowerShell 5.1.0.0