CommandCompletion.GetNextResult(Boolean) Method

Definition

Get the next result, moving forward or backward. Supports wraparound, so if there are any results at all, this method will never fail and never return null.

C++
public:
 System::Management::Automation::CompletionResult ^ GetNextResult(bool forward);

Parameters

forward
Boolean

True if we should move forward through the list, false if backwards.

Returns

The next completion result, or null if no results.

Applies to

Производ Верзије
PowerShell SDK 7.2.0, 7.3.0, 7.4.0
Windows PowerShell 5.1.0.0