Show / Hide Table of Contents

Interface ICurrentUser

Namespace: Volo.Abp.Users
Assembly: Volo.Abp.Security.dll
Syntax
public interface ICurrentUser

Properties

Email

Declaration
string Email { get; }
Property Value
Type Description
System.String

EmailVerified

Declaration
bool EmailVerified { get; }
Property Value
Type Description
System.Boolean

Id

Declaration
Guid? Id { get; }
Property Value
Type Description
System.Nullable<Guid>

IsAuthenticated

Declaration
bool IsAuthenticated { get; }
Property Value
Type Description
System.Boolean

PhoneNumber

Declaration
string PhoneNumber { get; }
Property Value
Type Description
System.String

PhoneNumberVerified

Declaration
bool PhoneNumberVerified { get; }
Property Value
Type Description
System.Boolean

Roles

Declaration
string[] Roles { get; }
Property Value
Type Description
System.String[]

TenantId

Declaration
Guid? TenantId { get; }
Property Value
Type Description
System.Nullable<Guid>

UserName

Declaration
string UserName { get; }
Property Value
Type Description
System.String

Methods

FindClaim(String)

Declaration
Claim FindClaim(string claimType)
Parameters
Type Name Description
System.String claimType
Returns
Type Description
Claim

FindClaims(String)

Declaration
Claim[] FindClaims(string claimType)
Parameters
Type Name Description
System.String claimType
Returns
Type Description
Claim[]

GetAllClaims()

Declaration
Claim[] GetAllClaims()
Returns
Type Description
Claim[]

IsInRole(String)

Declaration
bool IsInRole(string roleName)
Parameters
Type Name Description
System.String roleName
Returns
Type Description
System.Boolean

Extension Methods

CurrentUserExtensions.FindClaimValue(ICurrentUser, String)
CurrentUserExtensions.FindClaimValue<T>(ICurrentUser, String)
CurrentUserExtensions.GetId(ICurrentUser)
AbpObjectExtensions.As<T>(Object)
AbpObjectExtensions.To<T>(Object)
AbpObjectExtensions.IsIn<T>(T, T[])
AbpObjectExtensions.If<T>(T, Boolean, Func<T, T>)
AbpObjectExtensions.If<T>(T, Boolean, Action<T>)
LockExtensions.Locking(Object, Action)
LockExtensions.Locking<T>(T, Action<T>)
LockExtensions.Locking<TResult>(Object, Func<TResult>)
LockExtensions.Locking<T, TResult>(T, Func<T, TResult>)
Back to top Powered by Volosoft