Collapse All Expand All

.NET Framework Class Library
MessageConsumer Class See Also

[TIBCO.EMS .NET client library 5.1 documentation]

Closes the message consumer

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

# Syntax

    public void Close()

    Public Sub Close

    public:
    void Close()

# Remarks

The Close method stops the message consumer from receiving messages and reclaims resources.

If a receive call or a message listener is in progress, then Close waits until that call returns.

Message consumers rely on resources outside the client program. To reclaim these resources in a timely manner, a client should explicitly close message consumer objects (rather than waiting for garbage collection).

# See Also

MessageConsumer Class
TIBCO.EMS Namespace