Discuss this help topic in MsgConnect Forum

Filter: C++  Pascal  C#  VB.NET  Java  Java ME  ActiveX  DLL 


Messenger     See also    

Returns authentication credentials sent by the user with the particular message.


    MCMessageCredentials* GetMessageCredentials(MCMessage* Message);

    function GetMessageCredentials(var Message : TMCMessage) : TMCMessageCredentials;

    public MCMessageCredentials GetMessageCredentials(ref MCMessage Message)

    Public Function GetMessageCredentials(ByRef Message As MCMessage) As MCMessageCredentials

    public MCMessageCredentials getMessageSource(final MCMessage message);

[Java ME]
    public synchronized MCMessageCredentials getMessageSource(final MCMessage message);


  • Message - Reference to the message whose credentials is being queried. See more here

Return value

    Reference to MCMessageCredentials associated with the message.


    Call this method to get authentication credentials sent with the message. The returned value corresponds to credentials which were passed to OnValidateCredentials. Use this method from message handling code.

    If invalid message reference is passed (eg. the message has been already processed), null/nil/nothing is returned.

    Note: the method doesn't create a new object but returns a reference to existing object. You should not alter or deallocate the returned object and its fields.

Discuss this help topic in MsgConnect Forum