Partilhar via


PSModuleInfo.Invoke(ScriptBlock, Object[]) Method

Definition

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.

Applies to