Open topic with navigation

TIBCO Rendezvous® 8.8.0

# MessageReceivedEventHandler

Delegate

## Visual Basic

    Public Delegate Sub MessageReceivedEventHandler (
        ByVal listener As Object,
        ByVal messageReceivedEventArgs As MessageReceivedEventArgs )

## C#

    public delegate void MessageReceivedEventHandler (
        object listener,
        MessageReceivedEventArgs messageReceivedEventArgs );

## Purpose

Process inbound messages (listener events).

## Remarks

Implement this method to process inbound messages.

Parameter | Description
``listener`` | This parameter receives the listener object.
``messageReceivedEventArgs`` | This parameter receives the closure and message.

## Distinguishing CM Messages

A CMListener listener can receive messages from both CM senders and ordinary senders. The callback delegate can distinguish between them using the `TypeOf` method:

| • | Type CMMessage is from a CMTransport sender, using the certified delivery protocol.

| • | Type Message is from a NetTransport sender, using the reliable protocol.

## See Also

Listener

CMListener

Did you find this helpful?

Yes No
Great!
Thanks for taking the time to give us some feedback.
Sorry about that

Why wasn't this helpful? (check all that apply)

Could not find what I was looking for
Instructions confusing or unclear
Instructions did not work

Want to tell us more?

Please select at least one option or provide details about the issue!!

Error occurred while submitting feedback.

Error2 occurred while submitting feedback.

TIBCO Rendezvous®

Copyright © 1997-2025. Cloud Software Group, Inc. All Rights Reserved.