# tibemsMsgConsumer_GetMsgSelector

Function

## Purpose

Get the message selector from a consumer.

## C Declaration

    tibems_status tibemsMsgConsumer_GetMsgSelector(
        tibemsMsgConsumer msgConsumer,
        const char** selectorPtr );

## COBOL Call

    CALL "tibemsMsgConsumer_GetMsgSelector"
         USING BY VALUE msgConsumer,
               BY REFERENCE selectorPtr,
               RETURNING tibems-status
    END-CALL.

Note: `msgConsumer` and `selectorPtr` have usage pointer.

## Parameters

Parameter | Description
--- | ---
`msgConsumer` | Get the listener from this consumer.
`selectorPtr` | Store a pointer to the selector string in this location.

## Remarks

A message selector restricts the set of messages that the consumer receives to those that match the selector; see Message Selectors.

Programs can set this property only when creating the consumer object; see `tibemsSession_CreateConsumer`.

## See Also

`tibemsMsgCallback`

Copyright © Cloud Software Group, Inc. All rights reserved.