Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

FlagsExpression<T> Class

Definition

Namespace:
System.Management.Automation
Assembly:
System.Management.Automation.dll
Package:
Microsoft.PowerShell.5.1.ReferenceAssemblies v1.0.0
Package:
System.Management.Automation v7.4.15
Package:
System.Management.Automation v7.5.6
Package:
System.Management.Automation v7.6.1

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.

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.

generic <typename T>
 where T : value classpublic ref class FlagsExpression sealed
public sealed class FlagsExpression<T> where T : struct
type FlagsExpression<'T (requires 'T : struct)> = class
Public NotInheritable Class FlagsExpression(Of T)

Type Parameters

T
Inheritance
FlagsExpression<T>

Constructors

Name Description
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

Name Description
Evaluate(T)

Evaluate a given flag enum value against the expression.

Applies to