다음을 통해 공유


DynamicKeywordStatementAst.CommandElements Property

Definition

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)

Property Value

Applies to