AuthorizationFailureReason(IAuthorizationHandler, String) 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
创建新的失败原因。
public AuthorizationFailureReason (Microsoft.AspNetCore.Authorization.IAuthorizationHandler handler, string message);
new Microsoft.AspNetCore.Authorization.AuthorizationFailureReason : Microsoft.AspNetCore.Authorization.IAuthorizationHandler * string -> Microsoft.AspNetCore.Authorization.AuthorizationFailureReason
Public Sub New (handler As IAuthorizationHandler, message As String)
参数
- handler
- IAuthorizationHandler
负责此失败原因的处理程序。
- message
- String
描述失败的消息。