PSModuleInfo Members

Provides information about a module, such as the name of the module file, the path to the module file, what elements are exported from the module, and more. This class cannot be inherited. This class is introduced in Windows PowerShell 2.0.

The following tables list the members exposed by the PSModuleInfo type.

  Name Description
  PSModuleInfo Overloaded. Initializes a new instance of the PSModuleInfo class. This constructor is introduced by Windows PowerShell 2.0.
Top

  Name Description
public property AccessMode Gets or sets how the module can be added and removed. This property is introduced in Windows PowerShell 2.0.
public property Author Gets the author of the module. Introduced in Windows PowerShell 3.0.
public property ClrVersion Gets the version of the common language runtime (CLR) for the module. Introduced in Windows PowerShell 3.0.
public property CompanyName Gets the company name of the module. Introduced in Windows PowerShell 3.0.
public property Copyright Gets the copyright of the module. Introduced in Windows PowerShell 3.0.
public property Definition Gets the module definition. Introduced in Windows PowerShell 3.0.
public property Description Gets or sets a description of the module. This property is introduced in Windows PowerShell 2.0.
public property DotNetFrameworkVersion Gets the version of .NET Framework that is used in the module. Introduced in Windows PowerShell 3.0.
public property ExportedAliases Gets a dictionary of the aliases that are exported by the module. This property is introduced in Windows PowerShell 2.0.
public property ExportedCmdlets Gets a dictionary of the cmdlets that are exported by the module. This property is introduced in Windows PowerShell 2.0.
public property ExportedCommands Gets the aggregated list of visible commands exported from the module. Introduced in Windows PowerShell 3.0.
public property ExportedFormatFiles Gets a list of the format files that are exported by the module. This property is introduced in Windows PowerShell 2.0.
public property ExportedFunctions Gets a dictionary of the functions exported by the module. This property is introduced in Windows PowerShell 2.0.
public property ExportedTypeFiles Gets a list of the type files that are exported by the module. This property is introduced in Windows PowerShell 2.0.
public property ExportedVariables Gets a dictionary of the variables exported by the module. This property is introduced in Windows PowerShell 2.0.
public property ExportedWorkflows Gets the workflows that are exported by this module. Introduced in Windows PowerShell 3.0.
public property FileList Gets the list of files that are contained in the module. Introduced in Windows PowerShell 3.0.
public property Guid Gets the global identifier of the module. This property is introduced in Windows PowerShell 2.0.
public property HelpInfoUri The HelpInfo for this module, if it is defined in the module manifest. Introduced in Windows PowerShell 3.0.
public property IconUri IconUri of this module.This element is introduced in Windows PowerShell 5.0.
public property ImplementingAssembly If the module is a binary module or a script module that defines classes, this property if a reference to the assembly, otherwise it is null.This element is introduced in Windows PowerShell 5.0.
public property LicenseUri LicenseUri of this module.This element is introduced in Windows PowerShell 5.0.
public property LogPipelineExecutionDetails Gets or sets a value that indicates whether to log pipeline execution detail events. Introduced in Windows PowerShell 3.0.
public property ModuleBase Gets the base directory for the module. This property is introduced in Windows PowerShell 2.0.
public property ModuleList Gets the list of modules. Introduced in Windows PowerShell 3.0.
public property ModuleType Gets the type of file that defines the module, such as a script file or an assembly. This property is introduced in Windows PowerShell 2.0.
public property Name Gets the name of the module. This property is introduced in Windows PowerShell 2.0.
public property NestedModules Gets information about the modules that are loaded and removed with this module. This property is introduced in Windows PowerShell 2.0.
public property OnRemove Gets or sets a script block that is run when the module is removed. This property is introduced in Windows PowerShell 2.0.
public property Path Gets the path to a module file or a global identifier (for dynamic modules that are not defined by a module file). This property is introduced in Windows PowerShell 2.0.
public property PowerShellHostName Gets the name of the Windows PowerShell host. Introduced in Windows PowerShell 3.0.
public property PowerShellHostVersion Gets the version of the Windows PowerShell host. Introduced in Windows PowerShell 3.0.
public property PowerShellVersion Gets the version of Windows PowerShell. Introduced in Windows PowerShell 3.0.
public property Prefix TBD. Introduced in Windows PowerShell 4.0.
public property PrivateData Gets or sets the private data for the module. This property is introduced in Windows PowerShell 2.0.
public property ProcessorArchitecture Gets the processor architecture that is targeted by the module. Introduced in Windows PowerShell 3.0.
public property ProjectUri ProjectUri of this module.This element is introduced in Windows PowerShell 5.0.
public property ReleaseNotes ReleaseNotes of this module.This element is introduced in Windows PowerShell 5.0.
public property RepositorySourceLocation Repository SourceLocation of this module.This element is introduced in Windows PowerShell 5.0.
public property RequiredAssemblies Gets the required assemblies of the module. Introduced in Windows PowerShell 3.0.
public property RequiredModules Gets information about the modules that are required to load this module. This property is introduced in Windows PowerShell 2.0.
public property RootModule Gets the name of the root module for this module. Introduced in Windows PowerShell 3.0.
public property Scripts Gets the scripts to process for this module. Introduced in Windows PowerShell 3.0.
public property SessionState Gets or sets the current session state of the module. This property is introduced in Windows PowerShell 2.0.
public property Tags Tags of this module.This element is introduced in Windows PowerShell 5.0.
public property static UseAppDomainLevelModuleCache Gets or sets a value that indicates whether to enable the appdomain module path cache. Introduced in Windows PowerShell 3.0.
public property Version Gets the version number of the module. This property is introduced in Windows PowerShell 2.0.
Top

(see also Protected Methods)
 NameDescription
public methodAsCustomObjectGenerates a PSObject object whose elements reflect the functions and variables exported by the module.
public methodstaticClearAppDomainLevelModulePathCacheClears the appdomain-level module path cache. Introduced in Windows PowerShell 3.0.
public methodCloneImplements deep copy of this PSModuleInfo instance. Introduced in Windows PowerShell 3.0.
public methodEquals  (Inherited from Object)
public methodstaticGetAppDomainLevelModuleCacheProvides access to the module path cache in debug mode only.Introduced in Windows PowerShell 4.0.
public methodGetHashCode  (Inherited from Object)
public methodGetType  (Inherited from Object)
public methodGetVariableFromCallersModuleProvides access to variable objects in the callering module or from the top level session state if there is no calling module.Introduced in Windows PowerShell 4.0.
public methodInvokeRuns the specified script block within the scope, or session state, of the module. This method is introduced in Windows PowerShell 2.0.
public methodNewBoundScriptBlockBinds a script block to the current PSModuleInfo object. This method is introduced in Windows PowerShell 2.0.
public methodToStringOverridden. Generates a string representation of the current PSModuleInfo object. This method is introduced in Windows PowerShell 2.0.
Top

(see also Extension Methods)
 NameDescription
protected methodFinalize  (Inherited from Object)
protected methodMemberwiseClone  (Inherited from Object)
Top

  Name Description
public extension method As  Use this method to adapt an object from a foreign app domain to a known interface in this app domain.This element is introduced in Windows PowerShell 5.0. (Defined by RequestExtensions.)
public extension method As  This is called to adapt an object from a foreign app domain to a known interface in this appDomainThis element is introduced in Windows PowerShell 5.0. (Defined by RequestExtensions.)
public extension method As  Adapts an object from a foreign app domain to a known interface in this app domain.This element is introduced in Windows PowerShell 5.0. (Defined by RequestExtensions.)
public extension method Extend  Use this method to adapt and extend an object so that you can pass it to a foreign app domain.This element is introduced in Windows PowerShell 5.0. (Defined by RequestExtensions.)
public extension method Extend  This is called to adapt and extend an object that we wish to pass to a foreign app domainThis element is introduced in Windows PowerShell 5.0. (Defined by RequestExtensions.)
public extension method Extend  Used to extend an object with an interface from a foreign app domain.This element is introduced in Windows PowerShell 5.0. (Defined by RequestExtensions.)
public extension method ToEnumerable  This element is introduced in Windows PowerShell 5.0. (Defined by CollectionExtensions.)
Top


Show: