Class UserProfileCriterion
A criterion for matching values in the user profile.
Inheritance
System.Object
EPiServer.Personalization.VisitorGroups.CriterionBase<UserProfileModel>
UserProfileCriterion
Implements
EPiServer.Personalization.VisitorGroups.ICriterion
EPiServer.Personalization.VisitorGroups.IGeneratesAdministrativeInterface
Inherited Members
EPiServer.Personalization.VisitorGroups.CriterionBase<EPiServer.Personalization.VisitorGroups.Criteria.UserProfileModel>.Initialize(EPiServer.Personalization.VisitorGroups.VisitorGroupCriterion)
EPiServer.Personalization.VisitorGroups.CriterionBase<EPiServer.Personalization.VisitorGroups.Criteria.UserProfileModel>.Subscribe(EPiServer.Personalization.VisitorGroups.ICriterionEvents)
EPiServer.Personalization.VisitorGroups.CriterionBase<EPiServer.Personalization.VisitorGroups.Criteria.UserProfileModel>.Unsubscribe(EPiServer.Personalization.VisitorGroups.ICriterionEvents)
EPiServer.Personalization.VisitorGroups.CriterionBase<EPiServer.Personalization.VisitorGroups.Criteria.UserProfileModel>.Model
EPiServer.Personalization.VisitorGroups.CriterionBase<EPiServer.Personalization.VisitorGroups.Criteria.UserProfileModel>.EPiServer.Personalization.VisitorGroups.IGeneratesAdministrativeInterface.ModelType
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.dll
Version: 8.11.0Syntax
[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 |
|
Overrides
EPiServer.Personalization.VisitorGroups.CriterionBase<EPiServer.Personalization.VisitorGroups.Criteria.UserProfileModel>.IsMatch(System.Security.Principal.IPrincipal, System.Web.HttpContextBase)
Implements
EPiServer.Personalization.VisitorGroups.ICriterion
EPiServer.Personalization.VisitorGroups.IGeneratesAdministrativeInterface