AuthorizationBuilder.SetInvokeHandlersAfterFailure(Boolean) 方法

定义

确定是否应在 之后 HasFailed调用授权处理程序。 默认为 true。

public virtual Microsoft.AspNetCore.Authorization.AuthorizationBuilder SetInvokeHandlersAfterFailure (bool invoke);
abstract member SetInvokeHandlersAfterFailure : bool -> Microsoft.AspNetCore.Authorization.AuthorizationBuilder
override this.SetInvokeHandlersAfterFailure : bool -> Microsoft.AspNetCore.Authorization.AuthorizationBuilder
Public Overridable Function SetInvokeHandlersAfterFailure (invoke As Boolean) As AuthorizationBuilder

参数

invoke
Boolean

返回

生成器。

适用于