共用方式為


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 取代。

適用於