Click or drag to resize
VirtualContextValidatePrincipal 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#
public static void ValidatePrincipal(
	IPrincipal principal
)

Parameters

principal
Type: System.Security.PrincipalIPrincipal
Exceptions
ExceptionCondition
InvalidVirtualContextExceptionWhen the given principal does not carry any user or the user is disabled.
See Also