InitialSessionState.ImportPSModule Method

Definition

Overloads

ImportPSModule(IEnumerable<ModuleSpecification>)

Add a list of modules to import when the runspace is created.

ImportPSModule(String[])

Add a list of modules to import when the runspace is created.

ImportPSModule(IEnumerable<ModuleSpecification>)

Add a list of modules to import when the runspace is created.

public void ImportPSModule (System.Collections.Generic.IEnumerable<Microsoft.PowerShell.Commands.ModuleSpecification> modules);
Parameters
modules
IEnumerable<ModuleSpecification>

The modules, whose specificiations are specified by modules, to add.

ImportPSModule(String[])

Add a list of modules to import when the runspace is created.

public void ImportPSModule (string[] name);
Parameters
name
String[]

The modules to add