Class CurrentUserExtensions
Inheritance
object
CurrentUserExtensions
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Volo.Abp.Users
Assembly: Volo.Abp.Security.dll
Syntax
public static class CurrentUserExtensions
Methods
FindClaimValue(ICurrentUser, string)
Declaration
public static string? FindClaimValue(this ICurrentUser currentUser, string claimType)
Parameters
Type |
Name |
Description |
ICurrentUser |
currentUser |
|
string |
claimType |
|
Returns
FindClaimValue<T>(ICurrentUser, string)
Declaration
public static T FindClaimValue<T>(this ICurrentUser currentUser, string claimType) where T : struct
Parameters
Type |
Name |
Description |
ICurrentUser |
currentUser |
|
string |
claimType |
|
Returns
Type Parameters
FindImpersonatorTenantId(ICurrentUser)
Declaration
public static Guid? FindImpersonatorTenantId(this ICurrentUser currentUser)
Parameters
Returns
Type |
Description |
System.Guid? |
|
FindImpersonatorTenantName(ICurrentUser)
Declaration
public static string? FindImpersonatorTenantName(this ICurrentUser currentUser)
Parameters
Returns
FindImpersonatorUserId(ICurrentUser)
Declaration
public static Guid? FindImpersonatorUserId(this ICurrentUser currentUser)
Parameters
Returns
Type |
Description |
System.Guid? |
|
FindImpersonatorUserName(ICurrentUser)
Declaration
public static string? FindImpersonatorUserName(this ICurrentUser currentUser)
Parameters
Returns
GetId(ICurrentUser)
Declaration
public static Guid GetId(this ICurrentUser currentUser)
Parameters
Returns
Type |
Description |
System.Guid |
|