IContactRelationAssignerAssign Method (IUserInfo, ContactInfo, IContactDataPropagationChecker) |
Namespace: CMS.ContactManagement
void Assign( IUserInfo user, ContactInfo contact, IContactDataPropagationChecker checker = null )
... IContactRelationAssigner contactRelationAssigner = someImplementation; var user = someUser; var contact = someContact; // Will create new ContactMembershipInfo record of type User linking to the given contact and user contactRelationAssigner.Assign(user, contact); ...