你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ServiceUser 类

定义

ServiceUser 是一种 IPrincipal 实现,它提供有关如何使用任何支持的身份验证机制对用户进行身份验证的信息,以及 AuthorizationLevel 用户进行身份验证时所使用的机制。

public class ServiceUser : System.Security.Claims.ClaimsPrincipal
type ServiceUser = class
    inherit ClaimsPrincipal
Public Class ServiceUser
Inherits ClaimsPrincipal
继承
ServiceUser

构造函数

ServiceUser()

初始化 ServiceUser 类的新实例。

ServiceUser(IEnumerable<ClaimsIdentity>)

从指定的 identities 初始化 ServiceUser 类的新实例。

ServiceUser(IIdentity)

从指定的 identity 初始化 ServiceUser 类的新实例。

属性

Id

获取或设置用户 ID

Level

获取或设置 AuthorizationLevel 已授予此用户的权限。

方法

GetIdentitiesAsync()

获取此用户的提供程序特定标识的集合。

适用于