MessageQueueEnumerator::Current Property
.NET Framework (current version)
Gets the current MessageQueue of the enumeration.
Assembly: System.Messaging (in System.Messaging.dll)
Property Value
Type: System.Messaging::MessageQueue^The queue at which the cursor is currently positioned.
| Exception | Condition |
|---|---|
| InvalidOperationException |
When the enumerator is created, it does not point to anything, so Current is not valid and will throw an exception if it is accessed. You must call MoveNext to position the cursor at the first queue in the enumeration.
Multiple calls to Current with no intervening calls to MoveNext will return the same MessageQueue object.
.NET Framework
Available since 1.1
Available since 1.1
Show: