Current Property (MessageQueueEnumerator)
Gets the current MessageQueue of the enumeration.
Syntax
'Declaration Public ReadOnly Property Current As MessageQueue
'Usage Dim instance As MessageQueueEnumerator Dim value As MessageQueue value = instance.Current
public MessageQueue Current {get;}
public: property MessageQueue^ Current { MessageQueue^ get(); }
Property Value
The queue at which the cursor is currently positioned.Exceptions
Exception | Description |
---|---|
System.InvalidOperationException | You called Current before the first call to MoveNext. The cursor is located before the first queue in the enumeration.-or- You called Current after a call to MoveNext had returned false (indicating the cursor is located after the last queue in the enumeration). |
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