AuthorizationFailure.Failed 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
Failed(IEnumerable<AuthorizationFailureReason>) |
因為被呼叫而傳 Fail(AuthorizationFailureReason) 回失敗。 |
Failed(IEnumerable<IAuthorizationRequirement>) |
傳回失敗,因為某些需求未透過 Succeed(IAuthorizationRequirement) 符合。 |
Failed(IEnumerable<AuthorizationFailureReason>)
因為被呼叫而傳 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>)
傳回失敗,因為某些需求未透過 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>
不符合的需求。
傳回
失敗。