InitialSessionState.ImportPSModule InitialSessionState.ImportPSModule InitialSessionState.ImportPSModule Method

Definition

Overloads

ImportPSModule(IEnumerable<ModuleSpecification>) ImportPSModule(IEnumerable<ModuleSpecification>) ImportPSModule(IEnumerable<ModuleSpecification>)

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

ImportPSModule(String[]) ImportPSModule(String[]) ImportPSModule(String[])

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

ImportPSModule(IEnumerable<ModuleSpecification>) ImportPSModule(IEnumerable<ModuleSpecification>) 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);
member this.ImportPSModule : seq<Microsoft.PowerShell.Commands.ModuleSpecification> -> unit
Public Sub ImportPSModule (modules As IEnumerable(Of ModuleSpecification))
Parameters
modules
IEnumerable<ModuleSpecification>

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

ImportPSModule(String[]) ImportPSModule(String[]) ImportPSModule(String[])

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

public void ImportPSModule (string[] name);
member this.ImportPSModule : string[] -> unit
Public Sub ImportPSModule (name As String())
Parameters
name
String[]

The modules to add

Applies to