SaaS CMS has officially launched! Learn more now.

Class UserProfileCriterion

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. A criterion for matching values in the user profile.

Inheritance
System.Object
UserProfileCriterion
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Personalization.VisitorGroups.Criteria
Assembly: EPiServer.Cms.AspNet.dll
Version: 11.20.7
Syntax
[VisitorGroupCriterion(Category = "Site Criteria", Description = "Match one of the user profile properties with a specified value", DisplayName = "User Profile", LanguagePath = "/shell/cms/visitorgroups/criteria/userprofile", ScriptUrl = "ClientResources/Criteria/UserProfile.js")]
public class UserProfileCriterion : CriterionBase<UserProfileModel>, ICriterion, IGeneratesAdministrativeInterface

Constructors

UserProfileCriterion()

Initializes a new instance of the UserProfileCriterion class.

Declaration
public UserProfileCriterion()

UserProfileCriterion(ProfileBase)

Initializes a new instance of the UserProfileCriterion class.

Declaration
public UserProfileCriterion(ProfileBase profileRepository)
Parameters
Type Name Description
System.Web.Profile.ProfileBase profileRepository

The profile repository.

Properties

IgnoreUserProfileProperties

A list of user profile properties that should not be available to the visitor group criterion.

Declaration
public static IList<string> IgnoreUserProfileProperties { get; }
Property Value
Type Description
System.Collections.Generic.IList<System.String>

Methods

IsMatch(IPrincipal, HttpContextBase)

Determines whether the specified principal is match. Will match the value in the user profile with the value stored in the settings. The settings also holds what profile value to match.

Declaration
public override bool IsMatch(IPrincipal principal, HttpContextBase httpContext)
Parameters
Type Name Description
System.Security.Principal.IPrincipal principal

The principal.

System.Web.HttpContextBase httpContext

The HTTP context.

Returns
Type Description
System.Boolean

true if the specified principal is match; otherwise, false.

Overrides
EPiServer.Personalization.VisitorGroups.CriterionBase<EPiServer.Personalization.VisitorGroups.Criteria.UserProfileModel>.IsMatch(System.Security.Principal.IPrincipal, System.Web.HttpContextBase)

Implements

Extension Methods