'Declaration
Public ReadOnly Property Current As Message
'Usage
Dim instance As MessageEnumerator Dim value As Message value = instance.Current
public Message Current {get;}
'Declaration
Public ReadOnly Property Current As Message
'Usage
Dim instance As MessageEnumerator Dim value As Message value = instance.Current
public Message Current {get;}
Exception | Description |
---|---|
System.InvalidOperationException | 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.) |
MessageQueueException | The message the enumerator is currently pointing to no longer exists. It might have been deleted. |
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