IContactCreatorCreateContact Method |
Namespace: CMS.ContactManagement
ContactInfo CreateContact( string namePrefix )
Following example shows how to use the method CreateContact(String)
... IContactCreator contactCreator = someImplementation; // Assume it is now midnight on 2016/01/01 // Will create new contact with ContactLastName '2016-01-01 00:00:00.000' var contactWithoutPrefix = contactCreator.CreateContact(); // Will create new contact with ContactLastName 'prefix_2016-01-01 00:00:00.000' var contactWithoutPrefix = contactCreator.CreateContact("prefix"); ...