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

属性

注釈

メソッドは廃止されています。 代わりに、 Membership.ValidateUser(String, String)などのメンバーシップ API を使用することをお勧めします。 詳細については、「 メンバーシップを使用したユーザーの管理」を参照してください。

適用対象