This topic has not yet been rated - Rate this topic

MessageEnumerator Methods

The MessageEnumerator type exposes the following members.

  NameDescription
Public method Close Frees the resources associated with the enumerator.
Public method CreateObjRef Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject.)
Public method Dispose() Releases all resources used by the MessageEnumerator.
Protected method Dispose(Boolean) Releases the unmanaged resources used by the MessageEnumerator and optionally releases the managed resources.
Public method Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Infrastructure. Releases the resources held by the enumerator. (Overrides Object.Finalize().)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetLifetimeService Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method InitializeLifetimeService Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Protected method MemberwiseClone() Creates a shallow copy of the current Object. (Inherited from Object.)
Protected method MemberwiseClone(Boolean) Creates a shallow copy of the current MarshalByRefObject object. (Inherited from MarshalByRefObject.)
Public method MoveNext() Advances the enumerator to the next message in the queue, if one is currently available.
Public method MoveNext(TimeSpan) Advances the enumerator to the next message in the queue. If the enumerator is positioned at the end of the queue, MoveNext waits until a message is available or the given timeout expires.
Public method RemoveCurrent() Removes the current message from a transactional or non-transactional queue and returns the message to the calling application. There is no timeout specified for a message to arrive in the queue.
Public method RemoveCurrent(MessageQueueTransaction) Removes the current message from a transactional queue and returns the message to the calling application. There is no timeout specified for a message to arrive in the queue.
Public method RemoveCurrent(MessageQueueTransactionType) Removes the current message from a queue and returns the message to the calling application. There is no timeout specified for a message to arrive in the queue.
Public method RemoveCurrent(TimeSpan) Removes the current message from the queue and returns the message to the calling application. If there is a message to remove, the method returns it immediately. Otherwise, the method waits the specified timeout for a new message to arrive.
Public method RemoveCurrent(TimeSpan, MessageQueueTransaction) Removes the current message from a transactional queue and returns the message to the calling application. If there is a message to remove, the method returns it immediately. Otherwise, the method waits the specified timeout for a new message to arrive.
Public method RemoveCurrent(TimeSpan, MessageQueueTransactionType) Removes the current message from a queue and returns the message to the calling application. If there is a message to remove, the method returns it immediately. Otherwise, the method waits the specified timeout for a new message to arrive.
Public method Reset Resets the current enumerator so it points to the head of the queue.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Top
Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.