FormsAuthenticationUserCollection.Set メソッドとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > FormsAuthenticationUserCollection.Set メソッドの意味・解説 

FormsAuthenticationUserCollection.Set メソッド

メモ : このメソッドは、.NET Framework version 2.0新しく追加されたものです。

コレクション内の指定した FormsAuthenticationUser オブジェクト変更します

名前空間: System.Web.Configuration
アセンブリ: System.Web (system.web.dll 内)
構文構文

Public Sub Set ( _
    user As FormsAuthenticationUser _
)
Dim instance As FormsAuthenticationUserCollection
Dim user As FormsAuthenticationUser

instance.Set(user)
public void Set (
    FormsAuthenticationUser user
)
public:
void Set (
    FormsAuthenticationUser^ user
)
public void Set (
    FormsAuthenticationUser user
)
public function Set (
    user : FormsAuthenticationUser
)

パラメータ

user

変更する必要のある FormsAuthenticationUserCollection オブジェクト

使用例使用例

Set メソッド使用するコード例次に示します

' Using method Set.
' Define the SHA1 encrypted password.
  Dim newPassword As String
 = _
  "5BAA61E4C9B93F3F0682250B6CF8331B7EE68FD8"
' Define the user name.
Dim currentUserName As String
 = "userName"

' Create the new user.
  Dim theUser _
  As New FormsAuthenticationUser(currentUserName,
 newPassword)

formsAuthenticationCredentials.Users.Set(theUser)

If Not authenticationSection.SectionInformation.IsLocked
 Then
   configuration.Save()
End If
// Using method Set.

// Define the SHA1 encrypted password.
string newPassword = 
    "5BAA61E4C9B93F3F0682250B6CF8331B7EE68FD8";
// Define the user name.
string currentUserName = "userName";

// Create the new user.
FormsAuthenticationUser theUser = 
    new FormsAuthenticationUser(currentUserName, newPassword);

formsAuthenticationCredentials.Users.Set(theUser);

if (!authenticationSection.SectionInformation.IsLocked)
{
    configuration.Save();
}
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
FormsAuthenticationUserCollection クラス
FormsAuthenticationUserCollection メンバ
System.Web.Configuration 名前空間
その他の技術情報
authentication 要素 (ASP.NET 設定スキーマ)
authenticationforms 要素 (ASP.NET 設定スキーマ)



英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

FormsAuthenticationUserCollection.Set メソッドのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



FormsAuthenticationUserCollection.Set メソッドのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2025 Microsoft.All rights reserved.

©2025 GRAS Group, Inc.RSS