Share via


ScriptRequirements.RequiredModules Property

Definition

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)

Property Value

Applies to