FormsAuthentication.Authenticate(String, String) Metódus

Definíció

Figyelemfelhívás

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

Ellenőrzi a felhasználónevet és a jelszót az alkalmazás konfigurációs fájljában tárolt hitelesítő adatokkal szemben.

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

Paraméterek

name
String

A felhasználónév.

password
String

A felhasználó jelszava.

Válaszok

trueha a felhasználónév és a jelszó érvényes; egyéb esetben. false

Attribútumok

Megjegyzések

Ez a módszer elavult. Az ajánlott alternatíva a tagsági API-k használata, például Membership.ValidateUser(String, String). További információ: Felhasználók kezelése tagsággal.

A következőre érvényes: