This documentation is archived and is not being maintained.

PassportIdentity.HasSavedPassword Property

Gets information on whether the Passport member's password was saved.

[Visual Basic]
Public ReadOnly Property HasSavedPassword As Boolean
[C#]
public bool HasSavedPassword {get;}
[C++]
public: __property bool get_HasSavedPassword();
[JScript]
public function get HasSavedPassword() : Boolean;

Property Value

true if the Passport member's ticket indicates that the password was saved on the Passport logon page the last time the ticket was refreshed; otherwise, false.

Remarks

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()
' Create a string variable that indicates whether the user has a valid Passport ticket.
Dim sHasTick As String = newPass.HasTicket.ToString()

[C#] 
// Declare new PassportIdendity object as variable newPass.
System.Web.Security.PassportIdentity newPass = new System.Web.Security.PassportIdentity();
// Set a string variable that indicates whether the user has a valid Passport ticket.
String sHasTick = newPass.HasTicket.ToString();

[C++] 
// Declare new PassportIdendity object as variable newPass.
PassportIdentity* newPass = new PassportIdentity();
// Set a string variable that indicates whether the user has a valid Passport ticket.
String* sHasTick = newPass->HasTicket.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: