AuthorizationFailure.Failed 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
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
参数
- reasons
- IEnumerable<AuthorizationFailureReason>
返回
失败。
适用于
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>
未满足的要求。
返回
失败。