共用方式為


AuthorizationFailure.Failed 方法

定義

多載

Failed(IEnumerable<AuthorizationFailureReason>)

因為被呼叫而傳 Fail(AuthorizationFailureReason) 回失敗。

Failed(IEnumerable<IAuthorizationRequirement>)

傳回失敗,因為某些需求未透過 Succeed(IAuthorizationRequirement) 符合。

Failed(IEnumerable<AuthorizationFailureReason>)

來源:
AuthorizationFailure.cs
來源:
AuthorizationFailure.cs
來源:
AuthorizationFailure.cs
來源:
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>)

來源:
AuthorizationFailure.cs
來源:
AuthorizationFailure.cs
來源:
AuthorizationFailure.cs
來源:
AuthorizationFailure.cs
來源:
AuthorizationFailure.cs
來源:
AuthorizationFailure.cs
來源:
AuthorizationFailure.cs
來源:
AuthorizationFailure.cs
來源:
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>

不符合的需求。

傳回

失敗。

適用於