ScriptRequirements.RequiredModules Property
Definition
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.
The modules this script requires, specified like:
#requires -Module NetAdapter
#requires -Module @{Name="NetAdapter"; Version="1.0.0.0"}
If no modules are required, this property is an empty collection.
public:
property System::Collections::ObjectModel::ReadOnlyCollection<Microsoft::PowerShell::Commands::ModuleSpecification ^> ^ RequiredModules { System::Collections::ObjectModel::ReadOnlyCollection<Microsoft::PowerShell::Commands::ModuleSpecification ^> ^ get(); };
public System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.PowerShell.Commands.ModuleSpecification> RequiredModules { get; }
member this.RequiredModules : System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.PowerShell.Commands.ModuleSpecification>
Public ReadOnly Property RequiredModules As ReadOnlyCollection(Of ModuleSpecification)