Xperience 13 API Reference
Xperience 13 API Reference
Namespaces
CMS Namespaces
CMS.Helpers Namespaces
CMS.Helpers
VirtualContext Class
VirtualContext Methods
AddPathHash Method
ContainsVirtualContextPrefix Method
GetFormBuilderPath Method
GetItem Method
GetPreviewLinkParameters Method
GetPreviewLinkPathFromVirtualContext Method
GetPreviewModeParameters Method
GetPreviewModePathFromVirtualContext Method
GetVirtualContextPath Method
GetVirtualContextPrefix Method
HandleVirtualContext Method
ItemIsSet Method
LoadVirtualContextValues Method
RemoveVirtualContextPrefix Method
ReplaceVirtualContextPrefix Method
Reset Method
SetItem Method
StoreVirtualContextValues Method
ValidatePathHash Method
ValidatePrincipal Method
VirtualContext
ValidatePrincipal Method
Validates whether the request carries a valid user name. The username can be either in the URL or in a cookie.
Namespace:
CMS.Helpers
Assembly:
CMS.Helpers (in CMS.Helpers.dll) Version: 13.0.131
Syntax
C#
Copy
public
static
void
ValidatePrincipal
(
IPrincipal
principal
)
Parameters
principal
Type:
System.Security.Principal
IPrincipal
Exceptions
Exception
Condition
InvalidVirtualContextException
When the given
principal
does not carry any user or the user is disabled.
See Also
Reference
VirtualContext Class
CMS.Helpers Namespace
Copyright (c) 2023 Kentico Software
Send comments on this topic to
support@kentico.com