Click or drag to resize
IContactPersistentStorageSetPersistentContact Method
Sets given contact to the persistent storage.

Namespace: CMS.ContactManagement
Assembly: CMS.ContactManagement (in CMS.ContactManagement.dll) Version: 10.0.0
Syntax
C#
void SetPersistentContact(
	ContactInfo contact
)

Parameters

contact
Type: CMS.ContactManagementContactInfo
Contact to be set
Remarks
In default implementation, cookie will be used as persistent storage for the contacts.
Examples

Following example shows how to use SetPersistentContact method

...
IContactPersistentStorage contactPersistentStorage = someImplementation;
// Stores given 'contact'  to the persistent storage
contactPersistentStorage.SetPersistentContact(contact);
...

...
// In another request

// Returns the same contact that was set earlier with SetPersistentContact method
contactPersistentStorage.GetPersistentContact();
See Also