Message.GetSource

Method

Visual Basic

Public Function GetSource() As Object

C#

public object GetSource();

Purpose

Extract the source associated with a (dispatched) message object.

Remarks

Dispatch associates the message with either a Listener or a VectorListener. This method returns that source.

This call is valid only for an inbound message that has already been dispatched. If the message is not associated with a listener or a vector listener, then this method returns null.