FormsAuthenticationUser(String, String) コンストラクター
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
渡されたパラメーターを使用して、FormsAuthenticationUser クラスの新しいインスタンスを初期化します。
public:
FormsAuthenticationUser(System::String ^ name, System::String ^ password);
public FormsAuthenticationUser (string name, string password);
new System.Web.Configuration.FormsAuthenticationUser : string * string -> System.Web.Configuration.FormsAuthenticationUser
Public Sub New (name As String, password As String)
パラメーター
- name
- String
ユーザーの名前。
- password
- String
ユーザーのパスワード。
例
次のコード例は、オブジェクトを作成する方法を FormsAuthenticationUser 示しています。
// Define the user name.
string name = "userName";
// Define the encrypted password.
string password =
"5BAA61E4C9B93F3F0682250B6CF8331B7EE68FD8";
// Create a new FormsAuthenticationUser object.
FormsAuthenticationUser newformsAuthenticationUser =
new FormsAuthenticationUser(name, password);
' Define the user name.
Dim name As String = "userName"
' Define the encrypted password.
Dim password As String = _
"5BAA61E4C9B93F3F0682250B6CF8331B7EE68FD8"
' Create a new FormsAuthenticationUser object.
Dim newformsAuthenticationUser _
As New FormsAuthenticationUser(name, password)
注釈
このコンストラクターは、渡されたパラメーターを FormsAuthenticationUser 使用して オブジェクトを作成します。
適用対象
GitHub で Microsoft と共同作業する
このコンテンツのソースは GitHub にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
.NET