Share via


ConfigurationDefinitionAst Constructor

Definition

Construct a configuration statement.

public:
 ConfigurationDefinitionAst(System::Management::Automation::Language::IScriptExtent ^ extent, System::Management::Automation::Language::ScriptBlockExpressionAst ^ body, System::Management::Automation::Language::ConfigurationType type, System::Management::Automation::Language::ExpressionAst ^ instanceName);
public ConfigurationDefinitionAst (System.Management.Automation.Language.IScriptExtent extent, System.Management.Automation.Language.ScriptBlockExpressionAst body, System.Management.Automation.Language.ConfigurationType type, System.Management.Automation.Language.ExpressionAst instanceName);
new System.Management.Automation.Language.ConfigurationDefinitionAst : System.Management.Automation.Language.IScriptExtent * System.Management.Automation.Language.ScriptBlockExpressionAst * System.Management.Automation.Language.ConfigurationType * System.Management.Automation.Language.ExpressionAst -> System.Management.Automation.Language.ConfigurationDefinitionAst
Public Sub New (extent As IScriptExtent, body As ScriptBlockExpressionAst, type As ConfigurationType, instanceName As ExpressionAst)

Parameters

extent
IScriptExtent

The extent of the expression, starting with the attribute and ending after the expression being attributed.

body
ScriptBlockExpressionAst

ScriptBlockExpressionAst of the configuration statement.

type
ConfigurationType

The type of the configuration.

instanceName
ExpressionAst

The configuration name expression.

Exceptions

If extent, body, or instanceName is null.

Applies to