FormsAuthentication.Authenticate(String, String) Yöntem

Tanım

Dikkat

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

Bir uygulamanın yapılandırma dosyasında depolanan kimlik bilgilerine karşı kullanıcı adını ve parolayı doğrular.

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

Parametreler

name
String

Kullanıcı adı.

password
String

Kullanıcının parolası.

Döndürülenler

true kullanıcı adı ve parola geçerliyse; aksi takdirde , false.

Öznitelikler

Açıklamalar

Bu yöntem kullanımdan kaldırıldı. Önerilen alternatif, gibi Membership.ValidateUser(String, String)Üyelik API'lerini kullanmaktır. Daha fazla bilgi için bkz. Üyelik Kullanarak Kullanıcıları Yönetme.

Şunlara uygulanır