FormsAuthentication.HashPasswordForStoringInConfigFile(String, String) メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
注意事項
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です。
返品
ハッシュされたパスワード。
- 属性
例外
passwordFormat が有効な FormsAuthPasswordFormat 値ではありません。
注釈
メソッドは廃止されています。 または、ASP.NET メンバーシップを使用してユーザー資格情報を格納することもできます。 詳細については、「 メンバーシップを使用したユーザーの管理」を参照してください。