FormsAuthenticationUserCollection.Add メソッド
アセンブリ: System.Web (system.web.dll 内)

Dim instance As FormsAuthenticationUserCollection Dim user As FormsAuthenticationUser instance.Add(user)



' Using method Add. ' Define the SHA1 encrypted password. Dim password As String = _ "5BAA61E4C9B93F3F0682250B6CF8331B7EE68FD8" ' Define the user name. Dim userName As String = "newUser" ' Create the new user. Dim currentUser _ As New FormsAuthenticationUser(userName, password) ' Execute the Add method. formsAuthenticationCredentials.Users.Add(currentUser) ' Update if not locked If Not authenticationSection.SectionInformation.IsLocked Then configuration.Save() End If
// Using method Add. // Define the SHA1 encrypted password. string password = "5BAA61E4C9B93F3F0682250B6CF8331B7EE68FD8"; // Define the user name. string userName = "newUser"; // Create the new user. FormsAuthenticationUser currentUser = new FormsAuthenticationUser(userName, password); // Execute the Add method. formsAuthenticationCredentials.Users.Add(currentUser); // Update if not locked if (!authenticationSection.SectionInformation.IsLocked) { configuration.Save(); }

Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からFormsAuthenticationUserCollection.Add メソッドを検索する場合は、下記のリンクをクリックしてください。

- FormsAuthenticationUserCollection.Add メソッドのページへのリンク