IdentityResultAssert.IsFailure Method

Definition

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

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

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

error
String

Applies to