Collapse All Expand All

.NET Framework Class Library
MessageConsumer Class See Also

[TIBCO.EMS .NET client library 6.1 documentation]

Receives the next message if one is immediately available.

Namespace: TIBCO.EMS
Assembly: TIBCO.EMS (in TIBCO.EMS.dll)

# Syntax

    public Message ReceiveNoWait()

    Public Function ReceiveNoWait As Message

    public:
    Message^ ReceiveNoWait()

#### Return Value

the next message produced for this message consumer, or null if one is not available

# Remarks

This method receives a message synchronously without blocking.

When the destination has at least one message ready, this method immediately returns the next message. When the destination does not have any messages ready, this method immediately returns null. When calling receive within a transaction, the consumer retains the message until transaction commits.

# See Also

MessageConsumer Class
TIBCO.EMS Namespace