The NMS Class Library (.Net Messaging Library)

ActiveMQDestination.GetClientId Method 

public static string GetClientId(
   ActiveMQDestination destination
);

See Also

ActiveMQDestination Class | ActiveMQ.Commands Namespace