PassportIdentity.IsAuthenticated 属性

定义

获取指示用户是否已由 Passport 颁发机构进行身份验证的值。Gets a value indicating whether the user is authenticated against a Passport authority. 此类已弃用。This class is deprecated.

public:
 property bool IsAuthenticated { bool get(); };
public bool IsAuthenticated { get; }
member this.IsAuthenticated : bool
Public ReadOnly Property IsAuthenticated As Boolean

属性值

Boolean

如果用户已由负责 Passport 身份验证的中心站点进行身份验证,则为 true;否则为 falsetrue if the user is authenticated against a central site responsible for Passport authentication; otherwise, false.

实现

示例

// 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.
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()

注解

此类已弃用且不再受支持。This class has been deprecated and is no longer supported. Microsoft Passport 网络已替换为 Windows Live ID。Microsoft Passport Network has been replaced by Windows Live ID. 有关如何使用 Windows Live ID 在 Web 应用程序中对用户进行身份验证的详细信息,请参阅 Windows LIVE ID SDKFor more information about how to use Windows Live ID to authenticate users in a Web application, see Windows Live ID SDK.

适用于