AuthorizationFailure.Failed 方法

定义

重载

Failed(IEnumerable<AuthorizationFailureReason>)

返回由于调用而导致 Fail(AuthorizationFailureReason) 的失败。

Failed(IEnumerable<IAuthorizationRequirement>)

返回失败,因为某些要求未通过 Succeed(IAuthorizationRequirement)满足。

Failed(IEnumerable<AuthorizationFailureReason>)

Source:
AuthorizationFailure.cs
Source:
AuthorizationFailure.cs
Source:
AuthorizationFailure.cs
Source:
AuthorizationFailure.cs

返回由于调用而导致 Fail(AuthorizationFailureReason) 的失败。

public static Microsoft.AspNetCore.Authorization.AuthorizationFailure Failed (System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Authorization.AuthorizationFailureReason> reasons);
static member Failed : seq<Microsoft.AspNetCore.Authorization.AuthorizationFailureReason> -> Microsoft.AspNetCore.Authorization.AuthorizationFailure
Public Shared Function Failed (reasons As IEnumerable(Of AuthorizationFailureReason)) As AuthorizationFailure

参数

返回

失败。

适用于

Failed(IEnumerable<IAuthorizationRequirement>)

Source:
AuthorizationFailure.cs
Source:
AuthorizationFailure.cs
Source:
AuthorizationFailure.cs
Source:
AuthorizationFailure.cs
Source:
AuthorizationFailure.cs
Source:
AuthorizationFailure.cs
Source:
AuthorizationFailure.cs
Source:
AuthorizationFailure.cs
Source:
AuthorizationFailure.cs

返回失败,因为某些要求未通过 Succeed(IAuthorizationRequirement)满足。

public:
 static Microsoft::AspNetCore::Authorization::AuthorizationFailure ^ Failed(System::Collections::Generic::IEnumerable<Microsoft::AspNetCore::Authorization::IAuthorizationRequirement ^> ^ failed);
public static Microsoft.AspNetCore.Authorization.AuthorizationFailure Failed (System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Authorization.IAuthorizationRequirement> failed);
static member Failed : seq<Microsoft.AspNetCore.Authorization.IAuthorizationRequirement> -> Microsoft.AspNetCore.Authorization.AuthorizationFailure
Public Shared Function Failed (failed As IEnumerable(Of IAuthorizationRequirement)) As AuthorizationFailure

参数

failed
IEnumerable<IAuthorizationRequirement>

未满足的要求。

返回

失败。

适用于