PassportIdentity.TicketAge Vlastnost

Definice

Získá čas v sekundách od vydání nebo aktualizace posledního lístku. Tato třída je zastaralá.

public:
 property int TicketAge { int get(); };
public int TicketAge { get; }
member this.TicketAge : int
Public ReadOnly Property TicketAge As Integer

Hodnota vlastnosti

Čas v sekundách od vystavení nebo aktualizace posledního lístku.

Příklady

// Declare new PassportIdendity object as variable newPass.
System.Web.Security.PassportIdentity newPass = new System.Web.Security.PassportIdentity();
// Build a string with the elapsed time since the user's ticket was last refreshed with the Passport Authority.
string sElapsedTime = "Elapsed time since ticket refresh: " + newPass.TicketAge.ToString() + " seconds.";
' Declare new PassportIdendity object as variable newPass.
Dim newPass As System.Web.Security.PassportIdentity = New System.Web.Security.PassportIdentity()
' Build a string with the elapsed time since the user's ticket was last refreshed 
' with the Passport Authority.
Dim sElapsedTime As String = "Elapsed time since ticket refresh: " + newPass.TicketAge.ToString() + " seconds."

Poznámky

Tato třída je zastaralá a již není podporována. Microsoft Passport Network byl nahrazen službou Windows Live ID.

Platí pro