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

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

FormsAuthenticationUser クラス

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

フォーム ベース認証使用する Web アプリケーションに対してユーザー資格情報構成します

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

Public NotInheritable Class
 FormsAuthenticationUser
    Inherits ConfigurationElement
Dim instance As FormsAuthenticationUser
public sealed class FormsAuthenticationUser
 : ConfigurationElement
public ref class FormsAuthenticationUser sealed
 : public ConfigurationElement
public final class FormsAuthenticationUser
 extends ConfigurationElement
public final class FormsAuthenticationUser
 extends ConfigurationElement
解説解説
使用例使用例

既存Web アプリケーションFormsAuthenticationUser オブジェクトアクセスするために FormsAuthenticationUserCollection取得する方法次のコード例示します構成ファイルには、次のようなセットアップ格納されます。

メモメモ

authenticationformscredentials 要素 (ASP.NET 設定スキーマ) セクション使用する場合は、「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」を参照してください

<authentication mode="Forms">
  <forms name="MyAppCookieName" loginUrl="/login.aspx">
    defaultUrl="formsdefault.aspx"
    protection="Encryption" timeout="5" path="aspnet"
    slidingExpiration="false"
    cookieless="UseCookies" domain="domainName">
    <credentials passwordFormat="SHA1">
      <user name="aspnetuser1"
        password="5BAA61E4C9B93F3F0682250B6CF8331B7EE68FD8"/>
       <user name="aspnetuser2"
         password="E38AD214943DAAD1D64C102FAEC29DE4AFE9DA3D"/>
    </credentials>          
  </forms>
</authentication>
' Get the Web application configuration.
  Dim configuration _
  As System.Configuration.Configuration = _
  WebConfigurationManager.OpenWebConfiguration( _
  "/aspnet")
' Get the section.
  Dim authenticationSection _
  As AuthenticationSection = _
  CType(configuration.GetSection( _
  "system.web/authentication"), AuthenticationSection)
' Get the users collection.
  Dim formsAuthenticationUsers _
  As FormsAuthenticationUserCollection = _
  authenticationSection.Forms.Credentials.Users

// Get the Web application configuration.
System.Configuration.Configuration configuration = 
    WebConfigurationManager.OpenWebConfiguration(
    "/aspnet");
// Get the section.
AuthenticationSection authenticationSection = 
    (AuthenticationSection)configuration.GetSection(
    "system.web/authentication");
// Get the users collection.
FormsAuthenticationUserCollection formsAuthenticationUsers =
    authenticationSection.Forms.Credentials.Users;

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


このページでは「.NET Framework クラス ライブラリ リファレンス」からFormsAuthenticationUser クラスを検索した結果を表示しています。
Weblioに収録されているすべての辞書からFormsAuthenticationUser クラスを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からFormsAuthenticationUser クラスを検索

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

辞書ショートカット

すべての辞書の索引

「FormsAuthenticationUser クラス」の関連用語

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

   

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



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

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

©2024 GRAS Group, Inc.RSS