Show / Hide Table of Contents

Class CurrentUserExtensions

Inheritance
System.Object
CurrentUserExtensions
Namespace: Volo.Abp.Users
Assembly: Volo.Abp.Security.dll
Syntax
public static class CurrentUserExtensions : object

Methods

FindClaimValue(ICurrentUser, String)

Declaration
public static string FindClaimValue(this ICurrentUser currentUser, string claimType)
Parameters
Type Name Description
ICurrentUser currentUser
System.String claimType
Returns
Type Description
System.String

FindClaimValue<T>(ICurrentUser, String)

Declaration
public static T FindClaimValue<T>(this ICurrentUser currentUser, string claimType)

    where T : struct
Parameters
Type Name Description
ICurrentUser currentUser
System.String claimType
Returns
Type Description
T
Type Parameters
Name Description
T

GetId(ICurrentUser)

Declaration
public static Guid GetId(this ICurrentUser currentUser)
Parameters
Type Name Description
ICurrentUser currentUser
Returns
Type Description
Guid
Back to top Powered by Volosoft