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.

C++
public:
 PSModuleInfo(bool linkToGlobal);

Parameters

linkToGlobal
Boolean

Applies to

PowerShell SDK 7.4.0 i druge verzije
Proizvod Verzije
PowerShell SDK 7.2.0, 7.3.0, 7.4.0
Windows PowerShell 5.1.0.0

PSModuleInfo(ScriptBlock)

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

C++
public:
 PSModuleInfo(System::Management::Automation::ScriptBlock ^ scriptBlock);

Parameters

scriptBlock
ScriptBlock

The scriptblock to use to initialize the module.

Applies to

PowerShell SDK 7.4.0 i druge verzije
Proizvod Verzije
PowerShell SDK 7.2.0, 7.3.0, 7.4.0
Windows PowerShell 5.1.0.0