PSModuleInfo PSModuleInfo PSModuleInfo Constructors

Definition

Overloads

PSModuleInfo(Boolean) PSModuleInfo(Boolean) PSModuleInfo(Boolean)

Default constructor to create an empty module info.

PSModuleInfo(ScriptBlock) PSModuleInfo(ScriptBlock)

Construct a PSModuleInfo instance initializing it from a scriptblock instead of a script file.

PSModuleInfo(Boolean) PSModuleInfo(Boolean) PSModuleInfo(Boolean)

Default constructor to create an empty module info.

public PSModuleInfo (bool linkToGlobal);
new System.Management.Automation.PSModuleInfo : bool -> System.Management.Automation.PSModuleInfo
Public Sub New (linkToGlobal As Boolean)
Parameters
linkToGlobal
Boolean Boolean Boolean

PSModuleInfo(ScriptBlock) PSModuleInfo(ScriptBlock)

Construct a PSModuleInfo instance initializing it from a scriptblock instead of a script file.

public PSModuleInfo (System.Management.Automation.ScriptBlock scriptBlock);
new System.Management.Automation.PSModuleInfo : System.Management.Automation.ScriptBlock -> System.Management.Automation.PSModuleInfo
Parameters
scriptBlock
ScriptBlock ScriptBlock ScriptBlock

The scriptblock to use to initialize the module.

Applies to