X
HOME HTML CSS JAVASCRIPT SQL PHP JQUERY ANGULAR XML ASP.NET MORE...
REFERENCES | EXAMPLES | FORUM | ABOUT

WebSecurity - IsConfirmed()


WebSecurity Object WebSecurity Object

Definition

The IsConfirmed() method returns a value that indicates whether the specified user has been confirmed.


C# and VB Syntax

WebSecurity.IsConfirmed(userName);


Parameters

Parameter Type Description
userName String The user name


Return Value

Type Description
Boolean true if the user is confirmed, otherwise false


Errors and Exceptions

Any access to the WebSecurity object throws an InvalidOperationException if:

  • The InitializeDatabaseConnection() method has not been called
  • SimpleMembership is not initialized (or disabled in the website configuration)

Remarks

The IsConfirmed() method checks the user account identified by the userName parameter.

If the membership has been confirmed (the user has confirmed the account by clicking an email link), the method returns true.

If a registration has not been confirmed, the user cannot log in.


Technical Data

Name Value
Namespace WebMatrix.WebData
Assembly WebMatrix.WebData.dll


WebSecurity Object WebSecurity Object

Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

WEB HOSTING

UK Reseller Hosting

WEB BUILDING

Download XML Editor FREE Website BUILDER Free HTML5 Templates FREE Website Templates Free HTML Templates

SHARE THIS PAGE

facebook