FormsAuthentication.Authenticate(String, String) メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
注意事項
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 を使用することをお勧めします。 詳細については、「 メンバーシップを使用したユーザーの管理」を参照してください。