IdentityResult Constructor
Initializes a new instance of the IdentityResult class.
Namespace: Microsoft.AspNet.Identity
Assembly: Microsoft.AspNet.Identity.Core (in Microsoft.AspNet.Identity.Core.dll)
Overload List
Name | Description | |
---|---|---|
IdentityResult(Boolean) | Constructor that takes whether the result is successful |
|
IdentityResult(IEnumerable<String>) | Initializes a new instance of the IdentityResult class with the specified error messages. |
|
IdentityResult(String[]) | Initializes a new instance of the IdentityResult class with the specified error messages. |
See Also
IdentityResult Class
Microsoft.AspNet.Identity Namespace
Return to top
IdentityResult Constructor (Boolean)
Constructor that takes whether the result is successful
Syntax
protected IdentityResult(
bool success
)
protected:
IdentityResult(
bool success
)
new :
success:bool -> IdentityResult
Protected Sub New (
success As Boolean
)
Parameters
- success
Type: System.Boolean
Return to top
IdentityResult Constructor (IEnumerable<String>)
Initializes a new instance of the IdentityResult class with the specified error messages.
Syntax
public IdentityResult(
IEnumerable<string> errors
)
public:
IdentityResult(
IEnumerable<String^>^ errors
)
new :
errors:IEnumerable<string> -> IdentityResult
Public Sub New (
errors As IEnumerable(Of String)
)
Parameters
errors
Type: System.Collections.Generic.IEnumerable<String>The error messages.
See Also
Return to top
IdentityResult Constructor (String[])
Initializes a new instance of the IdentityResult class with the specified error messages.
Syntax
public IdentityResult(
params string[] errors
)
public:
IdentityResult(
... array<String^>^ errors
)
new :
[<ParamArrayAttribute>] errors:string[] -> IdentityResult
Public Sub New (
ParamArray errors As String()
)
Parameters
errors
Type: System.String[]The error messages.
See Also
Return to top