Easy Tutorial
❮ Prop Webcontrol Bulletedlist Target Prop Webcontrol Calendar Selectorstyle ❯

WebSecurity - IsConfirmed()


Definition

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


C# and VB Syntax


Parameters

Parameter Type Description
userName String The username

Return Value

Type Description
Boolean Returns true if the user has been confirmed, otherwise false.

Errors and Exceptions

Under the following conditions, any access to the WebSecurity object will throw an InvalidOperationException:


Remarks

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

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

If the registration is not confirmed, the user cannot log in.


Technical Data

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

❮ Prop Webcontrol Bulletedlist Target Prop Webcontrol Calendar Selectorstyle ❯