This documentation is archived and is not being maintained.

PassportIdentity.IsAuthenticated Property

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

[Visual Basic]
Public Overridable ReadOnly Property IsAuthenticated As Boolean  _
   Implements IIdentity.IsAuthenticated
[C#]
public virtual bool IsAuthenticated {get;}
[C++]
public: __property virtual bool get_IsAuthenticated();
[JScript]
public function get IsAuthenticated() : Boolean;

Property Value

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

Implements

IIdentity.IsAuthenticated

Remarks

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 .

Example

[Visual Basic] 
' Declare new PassportIdendity object as variable newPass.
Dim newPass As System.Web.Security.PassportIdentity = New System.Web.Security.PassportIdentity()
' Set the string sIsAuth to the users SignIn status (a boolean) converted to a string.
Dim sIsAuth As String = newPass.IsAuthenticated.ToString()

[C#] 
// 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();

[C++] 
// Declare new PassportIdendity object as variable newPass.
PassportIdentity* newPass = new PassportIdentity();
// Set the string sIsAuth to the users SignIn status (a boolean) converted to a string.
String* sIsAuth = newPass->IsAuthenticated.ToString();

[JScript] No example is available for JScript. To view a Visual Basic, C#, or C++ example, click the Language Filter button Language Filter in the upper-left corner of the page.

Requirements

Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family

See Also

PassportIdentity Class | PassportIdentity Members | System.Web.Security Namespace

Show: