PSModuleInfo Constructors
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.
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. |
Default constructor to create an empty module info.
C++
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
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 |
Construct a PSModuleInfo instance initializing it from a scriptblock instead of a script file.
C++
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
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 |