次の方法で共有


PassportIdentity.TicketAge プロパティ

チケットが最後に発行または更新されてからの経過した時間を秒単位で取得します。

名前空間: System.Web.Security
アセンブリ: System.Web (system.web.dll 内)

構文

'宣言
Public ReadOnly Property TicketAge As Integer
'使用
Dim instance As PassportIdentity
Dim value As Integer

value = instance.TicketAge
public int TicketAge { get; }
public:
property int TicketAge {
    int get ();
}
/** @property */
public int get_TicketAge ()
public function get TicketAge () : int
適用できません。

プロパティ値

チケットに最後に発行または更新されてから経過した時間 (秒単位)。

解説

詳細については、MSDN ライブラリ (https://msdn.microsoft.com/library/ja) で Passport SDK に関するドキュメントを参照してください。

使用例

' 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."
// 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.
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: " 
    + System.Convert.ToString(newPass.get_TicketAge()) 
    + " seconds.";

プラットフォーム

Windows 98,Windows Server 2000 SP4,Windows CE,Windows Millennium Edition,Windows Mobile for Pocket PC,Windows Mobile for Smartphone,Windows Server 2003,Windows XP Media Center Edition,Windows XP Professional x64 Edition,Windows XP SP2,Windows XP Starter Edition

Microsoft .NET Framework 3.0 は Windows Vista,Microsoft Windows XP SP2,および Windows Server 2003 SP1 でサポートされています。

バージョン情報

.NET Framework

サポート対象 : 3.0,2.0,1.1,1.0

参照

関連項目

PassportIdentity クラス
PassportIdentity メンバ
System.Web.Security 名前空間