WhereOperatorSelectionMode Enum

Definition

Controls the matching behaviour of the Where() operator.

C++
public enum class WhereOperatorSelectionMode
Inheritance
WhereOperatorSelectionMode

Fields

Name Value Description
Default 0

Return all matches.

First 1

Stop processing after the first match.

Last 2

Return the last matching element.

SkipUntil 3

Skip until the condition is true, then return the rest.

Until 4

Return elements until the condition is true then skip the rest.

Split 5

Return an array of two elements, first index is matched elements, second index is the remaining elements.

Applies to

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