PasswordValidator.ValidateAsync Method

Asynchronously ensures that the string is of the required length and meets the configured requirements.

Namespace:  Microsoft.AspNet.Identity
Assembly:  Microsoft.AspNet.Identity.Core (in Microsoft.AspNet.Identity.Core.dll)

Syntax

'Declaration
Public Overridable Function ValidateAsync ( _
    item As String _
) As Task(Of IdentityResult)
'Usage
Dim instance As PasswordValidator 
Dim item As String 
Dim returnValue As Task(Of IdentityResult)

returnValue = instance.ValidateAsync(item)
public virtual Task<IdentityResult> ValidateAsync(
    string item
)
public:
virtual Task<IdentityResult^>^ ValidateAsync(
    String^ item
)
abstract ValidateAsync : 
        item:string -> Task<IdentityResult> 
override ValidateAsync : 
        item:string -> Task<IdentityResult> 
public function ValidateAsync(
    item : String
) : Task<IdentityResult>

Parameters

Return Value

Type: System.Threading.Tasks.Task<IdentityResult>
The task object representing the asynchronous operation.

Implements

IIdentityValidator<T>.ValidateAsync(T)

See Also

Reference

PasswordValidator Class

Microsoft.AspNet.Identity Namespace

Other Resources

ASP.NET Identity