IContactRelationAssignerAssign Method (MemberTypeEnum, BaseInfo, ContactInfo, IContactDataPropagationChecker) |
Namespace: CMS.ContactManagement
void Assign( MemberTypeEnum memberType, BaseInfo info, ContactInfo contact, IContactDataPropagationChecker checker = null )
... IContactRelationAssigner contactRelationAssigner = someImplementation; var subscriber = subscriber; var contact = someContact; // Will create new ContactMembershipInfo record of type Subscriber linking to the given contact and subscriber contactRelationAssigner.Assign(MemberTypeEnum.NewsletterSubscriber, subscriber, contact); ...