AuthorizationFailureReason(IAuthorizationHandler, String) 构造函数

定义

创建新的失败原因。

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

描述失败的消息。

适用于