Class UserProfileCriterion
A criterion for matching values in the user profile.
Inheritance
System.Object
UserProfileCriterion
Namespace: EPiServer.Personalization.VisitorGroups.Criteria
Assembly: EPiServer.dll
Version: 7.19.2Syntax
public class UserProfileCriterion : CriterionBase<UserProfileModel>
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 |
|