IdentityResultAssert.IsFailure Metoda
Definice
Důležité
Některé informace platí pro předběžně vydaný produkt, který se může zásadně změnit, než ho výrobce nebo autor vydá. Microsoft neposkytuje žádné záruky, výslovné ani předpokládané, týkající se zde uváděných informací.
Přetížení
| IsFailure(IdentityResult) |
Vyhodnotí, že výsledek nebyl úspěšný. |
| IsFailure(IdentityResult, IdentityError) |
Vyhodnotí, že výsledek nebyl úspěšný a že první chyba odpovídá kódu a popisu chyby. |
| IsFailure(IdentityResult, String) |
Vyhodnotí, že výsledek neuspěl a že se jedná o první chybu popisu chyby. |
IsFailure(IdentityResult)
Vyhodnotí, že výsledek nebyl úspěšný.
public:
static void IsFailure(Microsoft::AspNetCore::Identity::IdentityResult ^ result);
public static void IsFailure (Microsoft.AspNetCore.Identity.IdentityResult result);
static member IsFailure : Microsoft.AspNetCore.Identity.IdentityResult -> unit
Public Shared Sub IsFailure (result As IdentityResult)
Parametry
- result
- IdentityResult
Platí pro
IsFailure(IdentityResult, IdentityError)
Vyhodnotí, že výsledek nebyl úspěšný a že první chyba odpovídá kódu a popisu chyby.
public:
static void IsFailure(Microsoft::AspNetCore::Identity::IdentityResult ^ result, Microsoft::AspNetCore::Identity::IdentityError ^ error);
public static void IsFailure (Microsoft.AspNetCore.Identity.IdentityResult result, Microsoft.AspNetCore.Identity.IdentityError error);
static member IsFailure : Microsoft.AspNetCore.Identity.IdentityResult * Microsoft.AspNetCore.Identity.IdentityError -> unit
Public Shared Sub IsFailure (result As IdentityResult, error As IdentityError)
Parametry
- result
- IdentityResult
- error
- IdentityError
Platí pro
IsFailure(IdentityResult, String)
Vyhodnotí, že výsledek neuspěl a že se jedná o první chybu popisu chyby.
public:
static void IsFailure(Microsoft::AspNetCore::Identity::IdentityResult ^ result, System::String ^ error);
public static void IsFailure (Microsoft.AspNetCore.Identity.IdentityResult result, string error);
static member IsFailure : Microsoft.AspNetCore.Identity.IdentityResult * string -> unit
Public Shared Sub IsFailure (result As IdentityResult, error As String)
Parametry
- result
- IdentityResult
- error
- String