PassportIdentity.TimeSinceSignIn 属性

定义

获取从成员登录到 Passport 登录服务器以来经过的时间(以秒为单位)。 此类已弃用。

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

属性值

从成员登录到 Passport 登录服务器以来经过的时间(以秒为单位)。

示例

// 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 last signed in with the Passport Authority.
string sElapsedTimeSignIn = "Elapsed time since SignIn: " + newPass.TimeSinceSignIn.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 last signed in with the Passport Authority.
Dim sElapsedTimeSignIn As String = "Elapsed time since SignIn: " + newPass.TimeSinceSignIn.ToString() + " seconds."

注解

此类已弃用,不再受支持。 Microsoft Passport 网络已替换为 Windows Live ID。

适用于