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
System_CAPS_protmethod IdentityResult(Boolean)

Constructor that takes whether the result is successful

System_CAPS_pubmethod IdentityResult(IEnumerable<String>)

Initializes a new instance of the IdentityResult class with the specified error messages.

System_CAPS_pubmethod 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

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

See Also

ASP.NET Identity

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

See Also

ASP.NET Identity

Return to top