AuthorizationPolicyBuilder.RequireAuthenticatedUser 方法

定义

将 添加到 DenyAnonymousAuthorizationRequirement 强制对当前用户进行身份验证的当前实例。

public:
 Microsoft::AspNetCore::Authorization::AuthorizationPolicyBuilder ^ RequireAuthenticatedUser();
public Microsoft.AspNetCore.Authorization.AuthorizationPolicyBuilder RequireAuthenticatedUser ();
member this.RequireAuthenticatedUser : unit -> Microsoft.AspNetCore.Authorization.AuthorizationPolicyBuilder
Public Function RequireAuthenticatedUser () As AuthorizationPolicyBuilder

返回

完成操作后对此实例的引用。

适用于