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.OnlineMarketingAssembly: CMS.OnlineMarketing (in CMS.OnlineMarketing.dll) Version: 8.2.23
Syntax 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:
ContactInfoReturns current contact
See Also