Click or drag to resize
IContactCreatorCreateAnonymousContact Method
Creates new anonymous contact. Created instance of ContactInfo is saved to the database. ContactLastName starts with prefix ANONYMOUS.

Namespace: CMS.ContactManagement
Assembly: CMS.ContactManagement (in CMS.ContactManagement.dll) Version: 12.0.0
Syntax
C#
ContactInfo CreateAnonymousContact()

Return Value

Type: ContactInfo
Created contact
Examples

Following example shows how to use the method CreateAnonymousContact

...
IContactCreator contactCreator = someImplementation;

// Assume it is now midnight on 2016/01/01

// Will create new contact with ContactLastName 'Anonymous - 2016-01-01 00:00:00.000'
var contactWithoutPrefix = contactCreator.CreateAnonymousContact();
...
See Also