FormsAuthenticationUserCollection クラスとは? わかりやすく解説

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

FormsAuthenticationUserCollection クラス

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

FormsAuthenticationUser オブジェクトコレクション表します。このクラス継承できません。

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

Public NotInheritable Class
 FormsAuthenticationUserCollection
    Inherits ConfigurationElementCollection
Dim instance As FormsAuthenticationUserCollection
public sealed class FormsAuthenticationUserCollection
 : ConfigurationElementCollection
public ref class FormsAuthenticationUserCollection
 sealed : public ConfigurationElementCollection
public final class FormsAuthenticationUserCollection
 extends ConfigurationElementCollection
public final class FormsAuthenticationUserCollection
 extends ConfigurationElementCollection
解説解説

FormsAuthenticationCredentials は FormsAuthenticationUserCollection使用してauthorization 構成セクションforms セクション内の credentials セクションusers 要素プログラムかアクセスして変更できます

この型は、FormsAuthenticationConfiguration 型、FormsAuthenticationCredentials 型、FormsAuthenticationUser 型を含むグループ一部です。

使用例使用例

既存Web アプリケーション構成ファイルから FormsAuthenticationUserCollection オブジェクト取得する方法次のコード例示します

メモメモ

credentials 要素使用する場合は、「ASP.NET認証」に説明されているガイドラインに従う必要がありますスケーラビリティセキュリティ高めるため、外部データベース使用してユーザー資格情報保管することをお勧めます。安全な ASP.NET アプリケーション構築する方法詳細については、Microsoft MSDN Web サイト (msdn.microsoft.com) で、「Securing Your ASP.NET Application」や「Building Secure ASP.NET Applications: Authentication, Authorization, and Secure Communication」を参照してください

' Get the Web application configuration.
  Dim configuration As System.Configuration.Configuration
 = _
  WebConfigurationManager.OpenWebConfiguration( _
  "/aspnetTest")

' Get the authentication section.
  Dim authenticationSection _
  As AuthenticationSection = _
  CType(configuration.GetSection( _
  "system.web/authentication"), AuthenticationSection)

' Get the forms credentials collection .
  Dim formsAuthenticationCredentials _
  As FormsAuthenticationCredentials = _
  authenticationSection.Forms.Credentials

// Get the Web application configuration.
System.Configuration.Configuration configuration = 
    WebConfigurationManager.OpenWebConfiguration("/aspnetTest");

// Get the authentication section.
AuthenticationSection authenticationSection = 
    (AuthenticationSection)configuration.GetSection(
    "system.web/authentication");

// Get the forms credentials collection .
FormsAuthenticationCredentials formsAuthenticationCredentials =
    authenticationSection.Forms.Credentials;

継承階層継承階層
System.Object
   System.Configuration.ConfigurationElement
     System.Configuration.ConfigurationElementCollection
      System.Web.Configuration.FormsAuthenticationUserCollection
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバ場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照



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

辞書ショートカット

すべての辞書の索引

「FormsAuthenticationUserCollection クラス」の関連用語

FormsAuthenticationUserCollection クラスのお隣キーワード
検索ランキング

   

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



FormsAuthenticationUserCollection クラスのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2025 GRAS Group, Inc.RSS