FormsAuthentication.Authenticate(String, String) 메서드

정의

주의

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

매개 변수

name
String

사용자 이름입니다.

password
String

사용자의 암호입니다.

반품

true사용자 이름과 암호가 유효하면 이고, 그렇지 않으면 . false

특성

설명

이 메서드는 사용되지 않습니다. 권장되는 대안은 멤버 자격 API(예: Membership.ValidateUser(String, String).)를 사용하는 것입니다. 자세한 내용은 멤버 자격을 사용하여 사용자 관리를 참조하세요.

적용 대상