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 Network 已替换为 Windows Live ID。