ContactInterestHelper class.
You can achieve the same with the PersonInterestHelper class.
The helper classes provide the functionality that combines the MDO lists and what to select (they combine entity sub-collections with MDO lists).
Code
Walk-through
In the code above, once we have created an instance of theContact entity by using the Contact class, we use the contact’s InterestHelper to retrieve the selected interests. As shown above, we can retrieve the interest in 2 ways:
- using the
SelectHeadingItemsproperty - using the
SelectRootItemsproperty