Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

FlagsExpression<T> Class

 

Updated: April 27, 2016

Applies To: Windows PowerShell

Takes as input a collection of strings and builds an expression tree. This class cannot be inherited. Introduced in Windows PowerShell 3.0.

Namespace:   System.Management.Automation
Assembly:  System.Management.Automation (in System.Management.Automation.dll)

System::Object
  System.Management.Automation::FlagsExpression<T>

generic<typename T>
where T : value struct, gcnew(), IConvertible
public ref class FlagsExpression sealed 

Type Parameters

T

A type parameter representing the collection of flag attribute subexpression strings.

NameDescription
System_CAPS_pubmethodFlagsExpression<T>(array<Object^>^)

Constructs a tree from a comma-separated list of arguments. Introduced in Windows PowerShell 3.0.

System_CAPS_pubmethodFlagsExpression<T>(String^)

Constructs the expression from a single string. Introduced in Windows PowerShell 3.0.

NameDescription
System_CAPS_pubmethodEquals(Object^)

(Inherited from Object.)

System_CAPS_pubmethodEvaluate(T)

Evaluates a given flag enumeration value against the expression. Introduced in Windows PowerShell 3.0.

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

At the evaluation stage, the class walks down the constructed expression tree and evaluates the result.

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top

Community Additions

Show: