PRELIMINARY INFORMATION - SUBJECT TO CHANGE
This document is provided on an "AS IS" basis without warranties of any kind. Smartsite iXperion class libraries may change in future releases.
Applies the user policy.

Namespace: Smartsite.Runtime.Modules
Assembly:  Smartsite.Runtime.Modules (in Smartsite.Runtime.Modules.dll)

Syntax

C#Copy imageCopy Code
[(Name = "{0}.Policy.Apply")]
public static void ApplyUserPolicy(
	 context,
	bool acceptAll,
	params string[] allowedGroups
)
Visual Basic (Declaration)Copy imageCopy Code
<(Name := "{0}.Policy.Apply")> _
Public Shared Sub ApplyUserPolicy ( _
	context As , _
	acceptAll As , _
	ParamArray allowedGroups As () _
)

Parameters

context
IRenderContext
The context.
acceptAll
Boolean
True if the visitor accepts all cookies.
allowedGroups
array<String>[]()
The list of groups to allow.

See Also

Advanced