Class VisitorGroupMembershipCriterion
Criterion which checks if visitor is member or not member of another visitor group
Inheritance
System.Object
VisitorGroupMembershipCriterion
Namespace: EPiServer.Personalization.VisitorGroups.Criteria
Assembly: EPiServer.dll
Version: 7.19.2Syntax
public class VisitorGroupMembershipCriterion : CriterionBase<VisitorGroupMembershipModel>
Constructors
VisitorGroupMembershipCriterion()
Initializes an instance of VisitorGroupMembershipCriterion.
Declaration
public VisitorGroupMembershipCriterion()
VisitorGroupMembershipCriterion(VisitorGroupStore)
Initializes an instance of VisitorGroupMembershipCriterion.
Declaration
public VisitorGroupMembershipCriterion(VisitorGroupStore visitorGroupRepository)
Parameters
Type | Name | Description |
---|---|---|
EPiServer.Personalization.VisitorGroups.VisitorGroupStore | visitorGroupRepository |
Methods
IsMatch(IPrincipal, HttpContextBase)
Determines whether the specified principal is 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 |
|
Subscribe(ICriterionEvents)
Subscribes the DeletingVisitorGroup event to prevent deleting of group that is used in this criterion.
Declaration
public override void Subscribe(ICriterionEvents criterionEvents)
Parameters
Type | Name | Description |
---|---|---|
EPiServer.Personalization.VisitorGroups.ICriterionEvents | criterionEvents | The criterion events. |
Unsubscribe(ICriterionEvents)
Subscribes the DeletingVisitorGroup event
Declaration
public override void Unsubscribe(ICriterionEvents criterionEvents)
Parameters
Type | Name | Description |
---|---|---|
EPiServer.Personalization.VisitorGroups.ICriterionEvents | criterionEvents | The criterion events. |