Windows desktop applications
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

PSModuleInfo Methods

(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.

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

  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.)


Show:
© 2016 Microsoft