DynamicKeywordStatementAst.CommandElements 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.
A non-empty collection of command elements represent the content of the DynamicKeyword. It may represents a command, such as “Import-DSCResource”, or DSC resources, then CommandElements includes: (1) Keyword Name (2) InstanceName (3) Body, could be ScriptBlockExpressionAst (for Node keyword) or a HashtableAst (remaining)
This property is never null and never empty.
public:
property System::Collections::ObjectModel::ReadOnlyCollection<System::Management::Automation::Language::CommandElementAst ^> ^ CommandElements { System::Collections::ObjectModel::ReadOnlyCollection<System::Management::Automation::Language::CommandElementAst ^> ^ get(); };
public System.Collections.ObjectModel.ReadOnlyCollection<System.Management.Automation.Language.CommandElementAst> CommandElements { get; }
member this.CommandElements : System.Collections.ObjectModel.ReadOnlyCollection<System.Management.Automation.Language.CommandElementAst>
Public ReadOnly Property CommandElements As ReadOnlyCollection(Of CommandElementAst)