API Reference
Class
ModuleInfo
Information about a loaded PowerShell module.
Inheritance
- Object
- ModuleInfo
Remarks
Instances of this class are returned by module loading strategies to describe the outcome of importing a module.
Examples
var info = new ModuleInfo("DnsServer", "2.0", true);
Console.WriteLine($"Loaded {info.Name} version {info.Version}");
Constructors
public ModuleInfo(String name, String version, Boolean isLoaded, IReadOnlyList<String> dependencies = null) #Initializes a new instance of the ModuleInfo class.
Parameters
- name System.String
- Module name.
- version System.String
- Module version.
- isLoaded System.Boolean
- Indicates whether the module is loaded.
- dependencies System.Collections.Generic.IReadOnlyList{System.String} = null
- Optional dependencies.