Easy Tutorial
❮ Prop Webcontrol Calendar Selecteddates Control Linkbutton ❯

WebSecurity Property - IsAuthenticated


Definition

The IsAuthenticated property is a Boolean value that indicates whether the current user is authenticated (logged in).

If the current user is authenticated, the property value is true, otherwise it is false.


C# and VB Syntax


Example

Example C

Example VB


Remarks

The IsAuthenticated property is read-only. It cannot be changed by code.


Errors and Exceptions

In the following cases, any access to the WebSecurity object will throw an InvalidOperationException:


Technical Data

Name Value
Namespace WebMatrix.WebData
Assembly WebMatrix.WebData.dll
❮ Prop Webcontrol Calendar Selecteddates Control Linkbutton ❯