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

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

AuthenticationSection クラス

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

Web アプリケーション認証構成します。このクラス継承できません。

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

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

このセクションには、2 つコード例用意されています。最初の例では、authentication セクション複数属性に対して宣言によって値を指定する方法示してます。これらの属性には、AuthenticationSection クラスメンバとしてもアクセスできます2 番目の例では、AuthenticationSection クラス使用方法示してます。

次の構成ファイルの例では、authentication セクションに対して宣言によって値を指定する方法示してます。

メモメモ

credentials セクション使用する場合は、「ASP.NET認証」に説明されているガイドラインに従う必要がありますスケーラビリティセキュリティ高めるため、外部データベース使用してユーザー資格情報保管することをお勧めます。安全な ASP.NET アプリケーション構築する方法詳細については、Microsoft MSDN Web サイト (http://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">
    <credentials passwordFormat="SHA1">
      <user name="Kim"
         password="07B7F3EE06F278DB966BE960E7CBBD103DF30CA6"/>
      <user name="John"
         password="BA56E5E0366D003E98EA1C7F04ABF8FCB3753889"/>
    </credentials>
  </forms>
</authentication>

AuthenticationSection クラス使用する方法次のコード例示します

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

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

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

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

継承階層継承階層
System.Object
   System.Configuration.ConfigurationElement
     System.Configuration.ConfigurationSection
      System.Web.Configuration.AuthenticationSection
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバ場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
AuthenticationSection メンバ
System.Web.Configuration 名前空間
FormsAuthenticationConfiguration
PassportAuthentication
その他の技術情報
authentication 要素 (ASP.NET 設定スキーマ)
ASP.NET認証



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

辞書ショートカット

すべての辞書の索引

「AuthenticationSection クラス」の関連用語

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

   

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



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

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

©2024 GRAS Group, Inc.RSS