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.

WhereOperatorSelectionMode Enumeration

 

Updated: April 27, 2016

Applies To: Windows PowerShell

Controls the matching behaviour of the Where() operator. Introduced in Windows PowerShell 4.0.

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

public enum class WhereOperatorSelectionMode

Member nameDescription
Default

Return all matches

First

Stop processing after the first match.

Last

Return the last matching element

SkipUntil

Skip until the condition is true, then return the rest

Split

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

Until

Return elements until the condition is true then skip the rest

Return to top
Show: