PassportIdentity.TicketAge 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得自從上次票證發行或更新之後的時間 (以秒為單位)。 這個類別已被取代。
public:
property int TicketAge { int get(); };
public int TicketAge { get; }
member this.TicketAge : int
Public ReadOnly Property TicketAge As Integer
屬性值
自從上次票證發行或更新之後的時間 (以秒為單位)。
範例
// 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."
備註
這個類別已被取代,不再受到支援。 Microsoft Passport 網路已由 Windows Live ID 取代。