Share via


PassportIdentity.IsAuthenticated Proprietà

Definizione

Ottiene un valore che indica se l'utente è autenticato presso un'autorità Passport. Questa classe è deprecata.

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

Valore della proprietà

true se l'utente è autenticato presso un sito centrale responsabile per l'autenticazione Passport; in caso contrario, false.

Implementazioni

Esempio

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

Commenti

Questa classe è stata deprecata e non è più supportata. Microsoft Passport Network è stato sostituito da Windows Live ID.

Si applica a