संपादित करें

इसके माध्यम से साझा किया गया


FlowControl.ForEachNextObj(Object, IEnumerator) Method

Definition

Sets a reference to the next object in a For Each loop.

This API supports the product infrastructure and is not intended to be used directly from your code.

public:
 static bool ForEachNextObj(System::Object ^ % obj, System::Collections::IEnumerator ^ enumerator);
public static bool ForEachNextObj (ref object obj, System.Collections.IEnumerator enumerator);
static member ForEachNextObj : obj * System.Collections.IEnumerator -> bool
Public Function ForEachNextObj (ByRef obj As Object, enumerator As IEnumerator) As Boolean
Public Shared Function ForEachNextObj (ByRef obj As Object, enumerator As IEnumerator) As Boolean

Parameters

obj
Object

The range variable of the For Each loop.

enumerator
IEnumerator

The IEnumerator of the object being iterated over in the For Each loop.

Returns

True if obj refers to the next object; False if there are no more objects and obj is Nothing.

Remarks

This class supports the Visual Basic compiler and is not intended to be used directly from your code.

Applies to

See also