PassportIdentity.IsAuthenticated プロパティ
ユーザーが Passport 権限で認証されているかどうかを示す値を取得します。
名前空間: System.Web.Security
アセンブリ: System.Web (system.web.dll 内)
構文
'宣言
Public ReadOnly Property IsAuthenticated As Boolean
'使用
Dim instance As PassportIdentity
Dim value As Boolean
value = instance.IsAuthenticated
public bool IsAuthenticated { get; }
public:
virtual property bool IsAuthenticated {
bool get () sealed;
}
/** @property */
public final boolean get_IsAuthenticated ()
public final function get IsAuthenticated () : boolean
適用できません。
プロパティ値
ユーザーが Passport 認証を行う中央サイトで認証されている場合は true。それ以外の場合は false。
解説
IsAuthenticated の呼び出しは、PassportIdentity.GetIsAuthenticated(-1, -1, -1).
の呼び出しと同じ効果があります。
詳細については、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()
' 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 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 名前空間