PSModuleInfo
Class
Definition
Class describing a PowerShell module...
public sealed class PSModuleInfo
- Inheritance
-
PSModuleInfo
Constructors
| 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. |
Properties
| AccessMode |
Controls the module access mode... |
| Author |
Module Author |
| ClrVersion |
CLR Version |
| CompanyName |
Company Name |
| Copyright |
Copyright |
| Definition |
If this is a script module, then this property will contain the PowerShell source text that was used to define this module. |
| Description |
A description of this module... |
| DotNetFrameworkVersion |
.NET Framework Version |
| ExportedAliases |
Lists the aliases exported by this module. |
| ExportedCmdlets |
Lists the functions exported by this module... |
| ExportedCommands |
Gets the aggregated list of visible commands exported from the module. If there are two commands of different types exported with the same name (e.g. alias 'foo' and cmdlet 'foo') the combined dictionary will only contain the highest precidence cmdlet (e.g. the alias 'foo' since aliases shadow cmdlets. |
| ExportedDscResources | |
| ExportedFormatFiles |
The list of Format files imported by this module. |
| ExportedFunctions |
Lists the functions exported by this module... |
| ExportedTypeFiles |
The list of types files imported by this module. |
| ExportedVariables |
Lists the variables exported by this module. |
| ExportedWorkflows |
Lists the workflows exported by this module. |
| FileList |
FileList |
| Guid |
The guid for this module if one was defined in the module manifest. |
| HelpInfoUri |
The HelpInfo for this module if one was defined in the module manifest. |
| IconUri | |
| ImplementingAssembly | |
| LicenseUri | |
| LogPipelineExecutionDetails |
Get/set whether to log Pipeline Execution Detail events. |
| ModuleBase |
Get the module base directory for this module. For modules loaded via a module manifest, this will be the directory containting the manifest file rather than the directory containing the actual module file. This is particularly useful when loading a GAC'ed assembly. |
| ModuleList |
ModuleList |
| ModuleType |
True if the module was compiled (i.e. a .DLL) instead of being in PowerShell script... |
| Name |
The name of this module. |
| NestedModules |
Returns the list of child modules of this module. This will only be non-empty for module manifests. |
| OnRemove |
Optional script that is going to be called just before Remove-Module cmdlet removes the module |
| Path |
The path to the file that defined this module... |
| PowerShellHostName |
PowerShell Host Name |
| PowerShellHostVersion |
PowerShell Host Version |
| PowerShellVersion |
PowerShell Version |
| Prefix | |
| PrivateData |
This value is set from the PrivateData member in the module manifest. It allows implementor specific data to be passed to the module via the manifest file. |
| ProcessorArchitecture |
Processor Architecture |
| ProjectUri | |
| ReleaseNotes | |
| RepositorySourceLocation | |
| RequiredAssemblies |
Required Assemblies |
| RequiredModules |
Returns the list of required modules of this module. This will only be non-empty for module manifests. |
| RootModule |
Root Module |
| Scripts |
Scripts to Process |
| SessionState |
The session state instance associated with this module. |
| Tags | |
| UseAppDomainLevelModuleCache |
Enables or disables the appdomain module path cache |
| Version |
The version of this module |
Methods
| AsCustomObject() |
Build a custom object out of this module... |
| ClearAppDomainLevelModulePathCache() |
Clear out the appdomain-level module path cache. |
| Clone() |
Implements deep copy of a PSModuleInfo instance.
|
| GetVariableFromCallersModule(String) | |
| Invoke(ScriptBlock, Object[]) |
Invoke a scriptblock in the context of this module... |
| NewBoundScriptBlock(ScriptBlock) |
Returns a new scriptblock bound to this module instance. |
| ToString() |
ToString() implementation which returns the name of the module. |