MessageEnumerator.IEnumerator.Current Property

Definition

Returns a Message that references the message at the current cursor position.

C#
object System.Collections.IEnumerator.Current { get; }

Property Value

A Message that references the message at the current cursor position.

Implements

Exceptions

You accessed this property before the first call to MoveNext(). The cursor is located before the first element of the message enumeration.-or- You accessed this property after a call to MoveNext() had returned false (indicating the cursor is located after the last element of the message enumeration.)

The message the enumerator is currently pointing to no longer exists. It might have been deleted.

Remarks

This member is an explicit interface member implementation. It can be used only when the MessageEnumerator instance is cast to an IEnumerator interface.

Applies to

Product Versions
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1