共用方式為


HashtableAst Constructor

Definition

Construct a hash literal ast.

public:
 HashtableAst(System::Management::Automation::Language::IScriptExtent ^ extent, System::Collections::Generic::IEnumerable<Tuple<System::Management::Automation::Language::ExpressionAst ^, System::Management::Automation::Language::StatementAst ^> ^> ^ keyValuePairs);
public HashtableAst (System.Management.Automation.Language.IScriptExtent extent, System.Collections.Generic.IEnumerable<Tuple<System.Management.Automation.Language.ExpressionAst,System.Management.Automation.Language.StatementAst>> keyValuePairs);
new System.Management.Automation.Language.HashtableAst : System.Management.Automation.Language.IScriptExtent * seq<System.Management.Automation.Language.ExpressionAst * System.Management.Automation.Language.StatementAst> -> System.Management.Automation.Language.HashtableAst
Public Sub New (extent As IScriptExtent, keyValuePairs As IEnumerable(Of Tuple(Of ExpressionAst, StatementAst)))

Parameters

extent
IScriptExtent

The extent of the literal, from '@{' to the closing '}'.

keyValuePairs
IEnumerable<Tuple<ExpressionAst,StatementAst>>

The optionally null or empty list of key/value pairs.

Exceptions

If extent is null.

Applies to