PassportIdentity.IsAuthenticated 属性

定义

获取指示用户是否已由 Passport 颁发机构进行身份验证的值。 此类已弃用。

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

属性值

Boolean

如果用户已由负责 Passport 身份验证的中心站点进行身份验证,则为 true;否则为 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()

注解

此类已弃用,不再受支持。 Microsoft Passport 网络已替换为 Windows Live ID。

适用于