AuthorizationOptions.DefaultPolicy 属性

定义

获取或设置默认授权策略。 默认要求经过身份验证的用户。

public:
 property Microsoft::AspNetCore::Authorization::AuthorizationPolicy ^ DefaultPolicy { Microsoft::AspNetCore::Authorization::AuthorizationPolicy ^ get(); void set(Microsoft::AspNetCore::Authorization::AuthorizationPolicy ^ value); };
public Microsoft.AspNetCore.Authorization.AuthorizationPolicy DefaultPolicy { get; set; }
member this.DefaultPolicy : Microsoft.AspNetCore.Authorization.AuthorizationPolicy with get, set
Public Property DefaultPolicy As AuthorizationPolicy

属性值

注解

评估 IAuthorizeData 时使用的默认策略,未指定策略名称。

适用于