Click or drag to resize
ICurrentContactProviderSetCurrentContact Method
Stores information about the current contact into the persistent storage (IContactPersistentStorage), so that the next time (possibly in another request in the same session) GetCurrentContact(IUserInfo, Boolean) is called, the stored contact is returned.

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

Parameters

contact
Type: CMS.ContactManagementContactInfo
The contact who performed the request
Exceptions
ExceptionCondition
InvalidOperationExceptionProcessing of contacts cannot continue. This can be due to the insufficient license, disabled online marketing or incorrect request state.
See Also