AuthorizationFailure.Failed Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Failed(IEnumerable<AuthorizationFailureReason>) |
Return a failure due to Fail(AuthorizationFailureReason) being called. |
Failed(IEnumerable<IAuthorizationRequirement>) |
Return a failure due to some requirements not being met via Succeed(IAuthorizationRequirement). |
Failed(IEnumerable<AuthorizationFailureReason>)
- Source:
- AuthorizationFailure.cs
- Source:
- AuthorizationFailure.cs
- Source:
- AuthorizationFailure.cs
- Source:
- AuthorizationFailure.cs
Return a failure due to Fail(AuthorizationFailureReason) being called.
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
Parameters
- reasons
- IEnumerable<AuthorizationFailureReason>
Returns
The failure.
Applies to
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
Return a failure due to some requirements not being met via 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
Parameters
- failed
- IEnumerable<IAuthorizationRequirement>
The requirements that were not met.
Returns
The failure.