PassportIdentity.IsAuthenticated プロパティ
アセンブリ: System.Web (system.web.dll 内)
構文
ユーザーが Passport 認証を行う中央サイトで認証されている場合は true。それ以外の場合は false。
IsAuthenticated の呼び出しは、PassportIdentity.GetIsAuthenticated(-1, -1, -1). の呼び出しと同じ効果があります。
詳細については、MSDN ライブラリ (http://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() ' Set the string sIsAuth to the users SignIn status (a boolean) converted to a string. Dim sIsAuth As String = newPass.IsAuthenticated.ToString()
// Declare new PassportIdendity object as variable newPass. System.Web.Security.PassportIdentity newPass = new System.Web.Security.PassportIdentity(); // Set the string sIsAuth to the users SignIn status (a boolean) converted to a string. String sIsAuth = newPass.IsAuthenticated.ToString();
// Declare new PassportIdendity object as variable newPass. System.Web.Security.PassportIdentity newPass = new System.Web.Security.PassportIdentity(); // Set the string sIsAuth to the users SignIn status (a boolean) // converted to a string. String sIsAuth = System.Convert.ToString( newPass.get_IsAuthenticated());
Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
参照
- PassportIdentity.IsAuthenticated プロパティのページへのリンク