Dela via


IdentityResult.Failed(IdentityError[]) Method

Definition

Creates an IdentityResult indicating a failed identity operation, with a list of errors if applicable.

public:
 static Microsoft::AspNetCore::Identity::IdentityResult ^ Failed(... cli::array <Microsoft::AspNetCore::Identity::IdentityError ^> ^ errors);
public static Microsoft.AspNetCore.Identity.IdentityResult Failed (params Microsoft.AspNetCore.Identity.IdentityError[] errors);
static member Failed : Microsoft.AspNetCore.Identity.IdentityError[] -> Microsoft.AspNetCore.Identity.IdentityResult
Public Shared Function Failed (ParamArray errors As IdentityError()) As IdentityResult

Parameters

errors
IdentityError[]

An optional array of IdentityErrors which caused the operation to fail.

Returns

An IdentityResult indicating a failed identity operation, with a list of errors if applicable.

Applies to