PSModuleInfo.Invoke(ScriptBlock, Object[]) 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.
Invoke a scriptblock in the context of this module...
public:
System::Object ^ Invoke(System::Management::Automation::ScriptBlock ^ sb, ... cli::array <System::Object ^> ^ args);
public object Invoke (System.Management.Automation.ScriptBlock sb, params object[] args);
member this.Invoke : System.Management.Automation.ScriptBlock * obj[] -> obj
Public Function Invoke (sb As ScriptBlock, ParamArray args As Object()) As Object
Parameters
- sb
- ScriptBlock
The scriptblock to invoke.
- args
- Object[]
Arguments to the scriptblock.
Returns
The result of the invocation.