MessageEnumerator.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.
Gets the current Message that this enumerator points to.
public:
property System::Messaging::Message ^ Current { System::Messaging::Message ^ get(); };
public System.Messaging.Message Current { get; }
member this.Current : System.Messaging.Message
Public ReadOnly Property Current As Message
Property Value
The current message.
Exceptions
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.
Remarks
When the enumerator is created, it points to the head of the queue, at a location before the first message. In this case, Current is not valid and will throw an exception if it is accessed. You must call MoveNext to position the cursor at the first message in the queue.
Applies to
See also
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om