IContactRelationAssignerAssign Method (Int32, MemberTypeEnum, Int32, IContactDataPropagationChecker) |
Namespace: CMS.ContactManagement
void Assign( int relatedId, MemberTypeEnum memberType, int contactId, IContactDataPropagationChecker checker = null )
... IContactRelationAssigner contactRelationAssigner = someImplementation; var subscriber = subscriber; var contactI = someContactId; // Will create new ContactMembershipInfo record of type Subscriber linking to the given contact and subscriber contactRelationAssigner.Assign(subscriber.SubscriberID, MemberTypeEnum.NewsletterSubscriber, someContactId); ...