Lire en anglais

Partager via


FlagsExpression<T> Class

Definition

Takes as input a collection of strings and builds an expression tree from the input. At the evaluation stage, it walks down the tree and evaluates the result.

C++
generic <typename T>
 where T : value classpublic ref class FlagsExpression sealed

Type Parameters

T
Inheritance
FlagsExpression<T>

Constructors

FlagsExpression<T>(Object[])

Construct the tree from an object collection when arguments are comma separated. If valid, all elements are OR separated.

FlagsExpression<T>(String)

Construct the expression from a single string.

Methods

Evaluate(T)

Evaluate a given flag enum value against the expression.

Applies to

Produit Versions
PowerShell SDK 7.2.0, 7.3.0, 7.4.0
Windows PowerShell 5.1.0.0