Share via


ListIterator.Value Method

Definition

Retrieves the value that is pointed to by the iterator.

public:
 virtual System::Object ^ Value();
public virtual object Value ();
abstract member Value : unit -> obj
override this.Value : unit -> obj
Public Overridable Function Value () As Object

Returns

The value that is pointed to by the iterator.

Remarks

Before you try to retrieve the value of a list element, use the ListIterator.more method to test whether an element exists.

Applies to