MessageEnumerator.IEnumerator.Current Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns a Message that references the message at the current cursor position.
property System::Object ^ System::Collections::IEnumerator::Current { System::Object ^ get(); };
object System.Collections.IEnumerator.Current { get; }
member this.System.Collections.IEnumerator.Current : obj
ReadOnly Property Current As Object Implements IEnumerator.Current
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.