ModuleCmdletBase.ImportModuleMembers 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.
Overloads
ImportModuleMembers(PSModuleInfo, String) |
Import the script-level functions from one session state to another, calling WriteVerbose for each imported member... |
ImportModuleMembers(PSModuleInfo, String, ModuleCmdletBase+ImportModuleOptions) |
Import the script-level functions from one session state to another, calling WriteVerbose for each imported member... |
ImportModuleMembers(PSModuleInfo, String)
Import the script-level functions from one session state to another, calling WriteVerbose for each imported member...
protected public:
void ImportModuleMembers(System::Management::Automation::PSModuleInfo ^ sourceModule, System::String ^ prefix);
protected internal void ImportModuleMembers (System.Management.Automation.PSModuleInfo sourceModule, string prefix);
member this.ImportModuleMembers : System.Management.Automation.PSModuleInfo * string -> unit
Protected Friend Sub ImportModuleMembers (sourceModule As PSModuleInfo, prefix As String)
Parameters
- sourceModule
- PSModuleInfo
The session state instance to use as the source of the functions.
- prefix
- String
Command name prefix.
Applies to
ImportModuleMembers(PSModuleInfo, String, ModuleCmdletBase+ImportModuleOptions)
Import the script-level functions from one session state to another, calling WriteVerbose for each imported member...
protected public:
void ImportModuleMembers(System::Management::Automation::PSModuleInfo ^ sourceModule, System::String ^ prefix, Microsoft::PowerShell::Commands::ModuleCmdletBase::ImportModuleOptions options);
protected internal void ImportModuleMembers (System.Management.Automation.PSModuleInfo sourceModule, string prefix, Microsoft.PowerShell.Commands.ModuleCmdletBase.ImportModuleOptions options);
member this.ImportModuleMembers : System.Management.Automation.PSModuleInfo * string * Microsoft.PowerShell.Commands.ModuleCmdletBase.ImportModuleOptions -> unit
Protected Friend Sub ImportModuleMembers (sourceModule As PSModuleInfo, prefix As String, options As ModuleCmdletBase.ImportModuleOptions)
Parameters
- sourceModule
- PSModuleInfo
The session state instance to use as the source of the functions.
- prefix
- String
Command name prefix.
The set of options that are used while importing a module.