System.Messaging Reference (Document! X Sample)
Current Property (MessageEnumerator)



System.Messaging Namespace > MessageEnumerator Class : Current Property
Gets the current Message that this enumerator points to.
Syntax
'Declaration
 
Public ReadOnly Property Current As Message
'Usage
 
Dim instance As MessageEnumerator
Dim value As Message
 
value = instance.Current
public Message Current {get;}
public:
property Message^ Current {
   Message^ get();
}

Property Value

The current message.
Exceptions
ExceptionDescription
You called Current before the first call to MoveNext. The cursor is located before the first element of the message enumeration.-or- You called Current 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.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

MessageEnumerator Class
MessageEnumerator Members