PassportIdentity.TicketAge Proprietà

Definizione

Ottiene il tempo trascorso, in secondi, dall'emissione o dall'aggiornamento dell'ultimo ticket. Questa classe è deprecata.

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

Valore della proprietà

Tempo trascorso, in secondi, dall'emissione o dall'aggiornamento dell'ultimo ticket.

Esempio

// 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."

Commenti

Questa classe è stata deprecata e non è più supportata. Microsoft Passport Network è stato sostituito da Windows Live ID.

Si applica a