ConfigurationDefinitionAst Constructor
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.
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.
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.