Click or drag to resize
OnlineMarketingContextGetCurrentContact Method (CurrentUserInfo, Boolean)
Returns current contact. Tries to find contact in persistent storage, obtains it from the users or tries to recognize it according to known information. If no contact can be found, it creates a new anonymous contact.

Namespace: CMS.OnlineMarketing
Assembly: CMS.OnlineMarketing (in CMS.OnlineMarketing.dll) Version: 8.2.23
Syntax
C#
public static ContactInfo GetCurrentContact(
	CurrentUserInfo currentUser,
	bool isLogin
)

Parameters

currentUser
Type: CMS.MembershipCurrentUserInfo
User info
isLogin
Type: SystemBoolean
Indicates if current operation requesting CurrentContact is user login

Return Value

Type: ContactInfo
Returns current contact
See Also