Visual Basic 2005 in a Nutshell (In a Nutshell (OReilly))

IsAuthenticated Property

Location

My.User.IsAuthenticated

Syntax

Dim result As Boolean = My.User.IsAuthenticated

Description

The IsAuthenticated property indicates whether the current user has been successfully authenticated (TRue) or not (False).

Usage at a Glance

  • This property is read-only.

  • Some systems do not support authentication, such as Windows 95 and Windows 98. On these systems, this property always returns False.

Related Framework Entries

  • Microsoft.VisualBasic.ApplicationServices.User.IsAuthenticated Property

  • Microsoft.VisualBasic.ApplicationServices.WebUser.IsAuthenticated Property

  • System.Security.Principal.IIdentity.IsAuthenticated Property

See Also

CurrentPrincipal Property, InitializeWithWindowsUser Method, IsInRole Method, Name Property (My.User), User Object

Категории