IContactRelationAssignerAssign Method (MemberTypeEnum, BaseInfo, ContactInfo, Boolean) |
Namespace: CMS.ContactManagement
void Assign( MemberTypeEnum memberType, BaseInfo info, ContactInfo contact, bool mergeUsers )
... 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, false); ...