Click or drag to resize
ContactHelperCreateNewContact Method

Note: This API is now obsolete.

Creates new contact for subscriber and its relation.

Namespace: CMS.ContactManagement
Assembly: CMS.ContactManagement (in CMS.ContactManagement.dll) Version: 10.0.0
Syntax
C#
[ObsoleteAttribute("Never intended for public use. Create contact, set properties if relation needs to be set use ContactMembershipInfoProvider.SetRelationship.")]
public static int CreateNewContact(
	string firstName,
	string lastName,
	string emailAddress,
	int siteId,
	int relId,
	MemberTypeEnum memberType
)

Parameters

firstName
Type: SystemString
Contact first name
lastName
Type: SystemString
Contact last name
emailAddress
Type: SystemString
Contact e-mail address
siteId
Type: SystemInt32
Site ID - only for backwards compatibility, value is not used
relId
Type: SystemInt32
ID for relation
memberType
Type: CMS.ContactManagementMemberTypeEnum
Member type

Return Value

Type: Int32
See Also