Export (0) Print
Expand All

PSModuleInfo.NewBoundScriptBlock Method

Binds a script block to the current PSModuleInfo object. This method is introduced in Windows PowerShell 2.0.


Namespace: System.Management.Automation
Assembly: System.Management.Automation (in System.Management.Automation.dll)

'Usage
Dim instance As PSModuleInfo
Dim scriptBlockToBind As ScriptBlock
Dim returnValue As ScriptBlock

returnValue = instance.NewBoundScriptBlock(scriptBlockToBind)

public ScriptBlock NewBoundScriptBlock (
	ScriptBlock scriptBlockToBind
)
public ScriptBlock NewBoundScriptBlock (
	ScriptBlock scriptBlockToBind
)
public function NewBoundScriptBlock (
	scriptBlockToBind : ScriptBlock
) : ScriptBlock

Parameters

scriptBlockToBind

A ScriptBlock object that is to be bound to the current PSModuleInfo object.

Return Value

A ScriptBlock object that is bound to the current PSModuleInfo object.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

 

Target Platforms


Show:
© 2015 Microsoft