PSModuleInfo.ExportedCommands Property

Definition

Gets the aggregated list of visible commands exported from the module. If there are two commands of different types exported with the same name (e.g. alias 'foo' and cmdlet 'foo') the combined dictionary will only contain the highest precedence cmdlet (e.g. the alias 'foo' since aliases shadow cmdlets.

C++
public:
 property System::Collections::Generic::Dictionary<System::String ^, System::Management::Automation::CommandInfo ^> ^ ExportedCommands { System::Collections::Generic::Dictionary<System::String ^, System::Management::Automation::CommandInfo ^> ^ get(); };

Property Value

Applies to

Product Versions
PowerShell SDK 7.2.0, 7.3.0, 7.4.0
Windows PowerShell 5.1.0.0