Removes the current message from the underlying set of messages.
[Visual Basic] Public Sub Remove() [C#] public void Remove(); [C++] public: void Remove(); [JScript] public function Remove();
Exception Type | Condition |
---|---|
ArgumentException | if the MoveNext method has not yet been called or if the last call to the MoveNext method returned false. |
MessageQueueException | if problems when accessing MSMQ. |
MessagesEnumerator Class | MessagesEnumerator Members | System.Messaging Namespace