PassportIdentity.TicketAge 属性
定义
获取自签发或刷新最后一个票证以来所经过的时间(以秒为单位)。Gets the time, in seconds, since the last ticket was issued or refreshed. 此类已弃用。This class is deprecated.
public:
property int TicketAge { int get(); };
public int TicketAge { get; }
member this.TicketAge : int
Public ReadOnly Property TicketAge As Integer
属性值
自签发或刷新最后一个票证以来所经过的时间(以秒为单位)。The time, in seconds, since the last ticket was issued or refreshed.
示例
// 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."
注解
此类已弃用且不再受支持。This class has been deprecated and is no longer supported. Microsoft Passport 网络已替换为 Windows Live ID。Microsoft Passport Network has been replaced by Windows Live ID. 有关如何使用 Windows Live ID 在 Web 应用程序中对用户进行身份验证的详细信息,请参阅 Windows LIVE ID SDK。For more information about how to use Windows Live ID to authenticate users in a Web application, see Windows Live ID SDK.