FormsAuthentication.HashPasswordForStoringInConfigFile(String, String) メソッド

定義

注意事項

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

指定されたパスワードとハッシュ アルゴリズムに基づいて、構成ファイルに格納するのに適したハッシュ パスワードを生成します。

public:
 static System::String ^ HashPasswordForStoringInConfigFile(System::String ^ password, System::String ^ passwordFormat);
public static string HashPasswordForStoringInConfigFile(string password, string passwordFormat);
[System.Obsolete("The recommended alternative is to use the Membership APIs, such as Membership.CreateUser. For more information, see http://go.microsoft.com/fwlink/?LinkId=252463.")]
public static string HashPasswordForStoringInConfigFile(string password, string passwordFormat);
static member HashPasswordForStoringInConfigFile : string * string -> string
[<System.Obsolete("The recommended alternative is to use the Membership APIs, such as Membership.CreateUser. For more information, see http://go.microsoft.com/fwlink/?LinkId=252463.")>]
static member HashPasswordForStoringInConfigFile : string * string -> string
Public Shared Function HashPasswordForStoringInConfigFile (password As String, passwordFormat As String) As String

パラメーター

password
String

ハッシュするパスワード。

passwordFormat
String

使用するハッシュ アルゴリズム。 passwordFormatは、String列挙値のいずれかを表すFormsAuthPasswordFormatです。

返品

ハッシュされたパスワード。

属性

例外

passwordnull です

-又は-

passwordFormatnullです。

passwordFormat が有効な FormsAuthPasswordFormat 値ではありません。

注釈

メソッドは廃止されています。 または、ASP.NET メンバーシップを使用してユーザー資格情報を格納することもできます。 詳細については、「 メンバーシップを使用したユーザーの管理」を参照してください。

適用対象