Sdílet prostřednictvím


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);
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.

Applies to