A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More

Class PrincipalExtensions

Inheritance
System.Object
PrincipalExtensions
Inherited Members
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.Commerce.Extensions
Assembly: EPiServer.Business.Commerce.dll
Version: 13.30.0
Syntax
[Obsolete("This class is no longer used. Use Mediachase.Commerce.Security.PrincipalExtensions.GetContactId instead. Will remain at least until October 2020.")]
public static class PrincipalExtensions

Methods

GetUserGuid(IPrincipal)

Declaration
public static Guid GetUserGuid(this IPrincipal principal)
Parameters
Type Name Description
System.Security.Principal.IPrincipal principal
Returns
Type Description
System.Guid