Click or drag to resize
ContactMembershipInfoProviderSetRelationship Method (Int32, MemberTypeEnum, Int32, Int32, Boolean)

Note: This API is now obsolete.

Adds specified relationship among specified contact, related object and object type.

Namespace: CMS.ContactManagement
Assembly: CMS.ContactManagement (in CMS.ContactManagement.dll) Version: 10.0.0
Syntax
C#
[ObsoleteAttribute("User IContactRelationAssigner service instead.")]
public static void SetRelationship(
	int relatedId,
	MemberTypeEnum memberType,
	int originalContactId,
	int activeContactId,
	bool mergeUsers
)

Parameters

relatedId
Type: SystemInt32
ID of related object
memberType
Type: CMS.ContactManagementMemberTypeEnum
Type of object
originalContactId
Type: SystemInt32
Contact ID
activeContactId
Type: SystemInt32
Contact ID
mergeUsers
Type: SystemBoolean
Indicates if user contacts should be merged
See Also