PassportIdentity.IsAuthenticated Property

Gets a value indicating whether the user is authenticated against a Passport authority.

Namespace: System.Web.Security
Assembly: System.Web (in system.web.dll)

public bool IsAuthenticated { get; }
/** @property */
public final boolean get_IsAuthenticated ()

public final function get IsAuthenticated () : boolean

Not applicable.

Property Value

true if the user is authenticated against a central site responsible for Passport authentication; otherwise, false.

Calling IsAuthenticated is the equivalent of calling PassportIdentity.GetIsAuthenticated(-1, -1, -1).

For more information, see the Passport SDK documentation in the MSDN Library at http://msdn.microsoft.com/Library.

// Declare new PassportIdendity object as variable newPass.
System.Web.Security.PassportIdentity newPass = new System.Web.Security.PassportIdentity();
// Set the string sIsAuth to the users SignIn status (a boolean) converted to a string.
String sIsAuth = newPass.IsAuthenticated.ToString();

// Declare new PassportIdendity object as variable newPass.
System.Web.Security.PassportIdentity newPass = 
    new System.Web.Security.PassportIdentity();
// Set the string sIsAuth to the users SignIn status (a boolean) 
// converted to a string.
String sIsAuth = System.Convert.ToString(
    newPass.get_IsAuthenticated());

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0

Community Additions

ADD
Show: