FormsAuthentication.Authenticate(String, String) Metodo

Definizione

Attenzione

The recommended alternative is to use the Membership APIs, such as Membership.ValidateUser. For more information, see http://go.microsoft.com/fwlink/?LinkId=252463.

Convalida un nome utente e una password in base alle credenziali archiviate nel file di configurazione per un'applicazione.

public:
 static bool Authenticate(System::String ^ name, System::String ^ password);
public static bool Authenticate(string name, string password);
[System.Obsolete("The recommended alternative is to use the Membership APIs, such as Membership.ValidateUser. For more information, see http://go.microsoft.com/fwlink/?LinkId=252463.")]
public static bool Authenticate(string name, string password);
static member Authenticate : string * string -> bool
[<System.Obsolete("The recommended alternative is to use the Membership APIs, such as Membership.ValidateUser. For more information, see http://go.microsoft.com/fwlink/?LinkId=252463.")>]
static member Authenticate : string * string -> bool
Public Shared Function Authenticate (name As String, password As String) As Boolean

Parametri

name
String

Nome utente.

password
String

La password dell'utente.

Valori restituiti

true se il nome utente e la password sono validi; in caso contrario, false.

Attributi

Commenti

Questo metodo è obsoleto. L'alternativa consigliata consiste nell'usare le API di appartenenza, ad esempio Membership.ValidateUser(String, String). Per altre informazioni, vedere Gestione degli utenti tramite l'appartenenza.

Si applica a