IdentityResultAssert.IsFailure 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
| IsFailure(IdentityResult) |
Asserts that the result has not Succeeded. |
| IsFailure(IdentityResult, IdentityError) |
Asserts that the result has not Succeeded and that first error matches error's code and Description. |
| IsFailure(IdentityResult, String) |
Asserts that the result has not Succeeded and that error is the first Error's Description. |
IsFailure(IdentityResult)
Asserts that the result has not Succeeded.
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)
Parameters
- result
- IdentityResult
Applies to
IsFailure(IdentityResult, IdentityError)
Asserts that the result has not Succeeded and that first error matches error's code and Description.
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)
Parameters
- result
- IdentityResult
- error
- IdentityError
Applies to
IsFailure(IdentityResult, String)
Asserts that the result has not Succeeded and that error is the first Error's Description.
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)
Parameters
- result
- IdentityResult
- error
- String