MessageEnumerator Methods
.NET Framework 4
The MessageEnumerator type exposes the following members.
| Name | Description | |
|---|---|---|
|
Close | Frees the resources associated with the enumerator. |
|
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.) |
|
Dispose() | Releases all resources used by the MessageEnumerator. |
|
Dispose(Boolean) | Releases the unmanaged resources used by the MessageEnumerator and optionally releases the managed resources. |
|
Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
|
Finalize | Infrastructure. Releases the resources held by the enumerator. (Overrides Object.Finalize().) |
|
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
|
GetLifetimeService | Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.) |
|
GetType | Gets the Type of the current instance. (Inherited from Object.) |
|
InitializeLifetimeService | Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.) |
|
MemberwiseClone() | Creates a shallow copy of the current Object. (Inherited from Object.) |
|
MemberwiseClone(Boolean) | Creates a shallow copy of the current MarshalByRefObject object. (Inherited from MarshalByRefObject.) |
|
MoveNext() | Advances the enumerator to the next message in the queue, if one is currently available. |
|
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. |
|
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. |
|
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. |
|
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. |
|
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. |
|
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. |
|
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. |
|
Reset | Resets the current enumerator so it points to the head of the queue. |
|
ToString | Returns a string that represents the current object. (Inherited from Object.) |