NewModuleCommand NewModuleCommand NewModuleCommand Class

Definition

Implements a cmdlet that creates a dynamic module from a scriptblock..

[System.Management.Automation.Cmdlet("New", "Module", DefaultParameterSetName="ScriptBlock", HelpUri="https://go.microsoft.com/fwlink/?LinkID=141554")]
[System.Management.Automation.OutputType(typeof(System.Management.Automation.PSModuleInfo))]
public sealed class NewModuleCommand : Microsoft.PowerShell.Commands.ModuleCmdletBase
type NewModuleCommand = class
    inherit ModuleCmdletBase
Public NotInheritable Class NewModuleCommand
Inherits ModuleCmdletBase
Inheritance
Attributes

Constructors

NewModuleCommand() NewModuleCommand() NewModuleCommand()

Properties

AddToAppDomainLevelCache AddToAppDomainLevelCache AddToAppDomainLevelCache Inherited from ModuleCmdletBase
ArgumentList ArgumentList ArgumentList

The arguments to pass to the scriptblock used to create the module

AsCustomObject AsCustomObject AsCustomObject

This parameter causes the session state instance to be written...

BaseArgumentList BaseArgumentList BaseArgumentList Inherited from ModuleCmdletBase
BaseDisableNameChecking BaseDisableNameChecking BaseDisableNameChecking Inherited from ModuleCmdletBase
Cmdlet Cmdlet Cmdlet

This parameter specifies the patterns matching the cmdlets to import from the module...

CommandOrigin CommandOrigin CommandOrigin Inherited from InternalCommand
CommandRuntime CommandRuntime CommandRuntime Inherited from Cmdlet
CurrentPSTransaction CurrentPSTransaction CurrentPSTransaction Inherited from Cmdlet
Events Events Events Inherited from PSCmdlet
Function Function Function

This parameter specifies the patterns matching the functions to import from the module...

Host Host Host Inherited from PSCmdlet
InvokeCommand InvokeCommand InvokeCommand Inherited from PSCmdlet
InvokeProvider InvokeProvider InvokeProvider Inherited from PSCmdlet
JobManager JobManager JobManager Inherited from PSCmdlet
JobRepository JobRepository JobRepository Inherited from PSCmdlet
MyInvocation MyInvocation MyInvocation Inherited from PSCmdlet
Name Name Name

This parameter specifies the name to assign to the dynamic module.

PagingParameters PagingParameters PagingParameters Inherited from PSCmdlet
ParameterSetName ParameterSetName ParameterSetName Inherited from PSCmdlet
ReturnResult ReturnResult ReturnResult

This parameter causes the session state instance to be written...

ScriptBlock ScriptBlock ScriptBlock

Specify a scriptblock to use for the module body...

SessionState SessionState SessionState Inherited from PSCmdlet
Stopping Stopping Stopping Inherited from Cmdlet

Methods

BeginProcessing() BeginProcessing() BeginProcessing() Inherited from Cmdlet
CurrentProviderLocation(String) CurrentProviderLocation(String) CurrentProviderLocation(String) Inherited from PSCmdlet
EndProcessing() EndProcessing() EndProcessing() Inherited from Cmdlet
GetResolvedProviderPathFromPSPath(String, ProviderInfo) GetResolvedProviderPathFromPSPath(String, ProviderInfo) GetResolvedProviderPathFromPSPath(String, ProviderInfo) Inherited from PSCmdlet
GetResourceString(String, String) GetResourceString(String, String) GetResourceString(String, String) Inherited from Cmdlet
GetUnresolvedProviderPathFromPSPath(String) GetUnresolvedProviderPathFromPSPath(String) GetUnresolvedProviderPathFromPSPath(String) Inherited from PSCmdlet
GetVariableValue(String) GetVariableValue(String) GetVariableValue(String) Inherited from PSCmdlet
GetVariableValue(String, Object) GetVariableValue(String, Object) GetVariableValue(String, Object) Inherited from PSCmdlet
ImportModuleMembers(PSModuleInfo, String) ImportModuleMembers(PSModuleInfo, String) ImportModuleMembers(PSModuleInfo, String) Inherited from ModuleCmdletBase
ImportModuleMembers(PSModuleInfo, String, ModuleCmdletBase+ImportModuleOptions) ImportModuleMembers(PSModuleInfo, String, ModuleCmdletBase+ImportModuleOptions) ImportModuleMembers(PSModuleInfo, String, ModuleCmdletBase+ImportModuleOptions) Inherited from ModuleCmdletBase
Invoke() Invoke() Invoke() Inherited from Cmdlet
Invoke<T>() Invoke<T>() Invoke<T>() Inherited from Cmdlet
ProcessRecord() ProcessRecord() ProcessRecord() Inherited from Cmdlet
ShouldContinue(String, String) ShouldContinue(String, String) ShouldContinue(String, String) Inherited from Cmdlet
ShouldContinue(String, String, Boolean, Boolean) ShouldContinue(String, String, Boolean, Boolean) ShouldContinue(String, String, Boolean, Boolean) Inherited from Cmdlet
ShouldContinue(String, String, Boolean, Boolean, Boolean) ShouldContinue(String, String, Boolean, Boolean, Boolean) ShouldContinue(String, String, Boolean, Boolean, Boolean) Inherited from Cmdlet
ShouldProcess(String) ShouldProcess(String) ShouldProcess(String) Inherited from Cmdlet
ShouldProcess(String, String) ShouldProcess(String, String) ShouldProcess(String, String) Inherited from Cmdlet
ShouldProcess(String, String, String) ShouldProcess(String, String, String) ShouldProcess(String, String, String) Inherited from Cmdlet
ShouldProcess(String, String, String, ShouldProcessReason) ShouldProcess(String, String, String, ShouldProcessReason) ShouldProcess(String, String, String, ShouldProcessReason) Inherited from Cmdlet
StopProcessing() StopProcessing() StopProcessing() Inherited from Cmdlet
ThrowTerminatingError(ErrorRecord) ThrowTerminatingError(ErrorRecord) ThrowTerminatingError(ErrorRecord) Inherited from Cmdlet
TransactionAvailable() TransactionAvailable() TransactionAvailable() Inherited from Cmdlet
WriteCommandDetail(String) WriteCommandDetail(String) WriteCommandDetail(String) Inherited from Cmdlet
WriteDebug(String) WriteDebug(String) WriteDebug(String) Inherited from Cmdlet
WriteError(ErrorRecord) WriteError(ErrorRecord) WriteError(ErrorRecord) Inherited from Cmdlet
WriteInformation(InformationRecord) WriteInformation(InformationRecord) WriteInformation(InformationRecord) Inherited from Cmdlet
WriteInformation(Object, String[]) WriteInformation(Object, String[]) WriteInformation(Object, String[]) Inherited from Cmdlet
WriteObject(Object) WriteObject(Object) WriteObject(Object) Inherited from Cmdlet
WriteObject(Object, Boolean) WriteObject(Object, Boolean) WriteObject(Object, Boolean) Inherited from Cmdlet
WriteProgress(ProgressRecord) WriteProgress(ProgressRecord) WriteProgress(ProgressRecord) Inherited from Cmdlet
WriteVerbose(String) WriteVerbose(String) WriteVerbose(String) Inherited from Cmdlet
WriteWarning(String) WriteWarning(String) WriteWarning(String) Inherited from Cmdlet

Applies to