Condividi tramite


PSModuleInfo Constructors

Definition

Overloads

PSModuleInfo(Boolean)

Default constructor to create an empty module info.

PSModuleInfo(ScriptBlock)

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

PSModuleInfo(Boolean)

Default constructor to create an empty module info.

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

Parameters

linkToGlobal
Boolean

Applies to

PSModuleInfo(ScriptBlock)

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

public:
 PSModuleInfo(System::Management::Automation::ScriptBlock ^ scriptBlock);
public PSModuleInfo (System.Management.Automation.ScriptBlock scriptBlock);
new System.Management.Automation.PSModuleInfo : System.Management.Automation.ScriptBlock -> System.Management.Automation.PSModuleInfo
Public Sub New (scriptBlock As ScriptBlock)

Parameters

scriptBlock
ScriptBlock

The scriptblock to use to initialize the module.

Applies to