RoleManagerSectionとは? わかりやすく解説

RoleManagerSection クラス

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

Web アプリケーションのロール管理インフラストラクチャをサポートするために使用される構成設定を定義します。このクラスは継承できません。

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

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

このセクションには、2 つのコード例が用意されています。最初の例では、RoleManagerSection クラスの複数のプロパティに対して、宣言によって値を指定する方法を示しています。2 番目の例では、RoleManagerSection 型の使用方法を示しています。

次の構成ファイルの例では、RoleManagerSection クラスの複数のプロパティに対して、宣言によって値を指定する方法を示しています。

<system.web>
  <roleManager 
    enabled="false" 
    cacheRolesInCookie="false" 
    cookieName=".ASPXROLES" cookieTimeout="30"
    cookiePath="/" cookieRequireSSL="false"
    cookieSlidingExpiration="true" createPersistentCookie="false"
    cookieProtection="All" 
    defaultProvider="AspNetSqlRoleProvider"
    maxCachedResults="25"  >
    <providers>
      <add 
        name="AspNetSqlRoleProvider"
        connectionStringName="LocalSqlServer" 
        applicationName="/"
        type="System.Web.Security.SqlRoleProvider, System.Web,
          Version=2.0.3600.0, Culture=neutral,
          PublicKeyToken=b03f5f7f11d50a3a" />
      <add 
        name="AspNetWindowsTokenRoleProvider" 
        applicationName="/"
        type="System.Web.Security.WindowsTokenRoleProvider, System.Web, 
          Version=2.0.3600.0, Culture=neutral, 
          PublicKeyToken=b03f5f7f11d50a3a" />
    </providers>
  </roleManager>
</system.web>

RoleManagerSection 型を使用する方法を次のコード例に示します。

Imports System
Imports System.Collections.Generic
Imports System.Text
Imports System.Configuration
Imports System.Web
Imports System.Web.Configuration

Namespace Samples.Aspnet.SystemWebConfiguration
  Class UsingRoleManagerSection
    Public Shared Sub Main()
      Try
        ' Set the path of the config file.
        Dim configPath As String
 = ""

        ' Get the Web application configuration object.
        Dim config As System.Configuration.Configuration
 = _
         System.Web.Configuration.WebConfigurationManager.OpenWebConfiguration(configPath)

        ' Get the section related object.
        Dim configSection As System.Web.Configuration.RoleManagerSection
 = _
         CType(config.GetSection("system.web/roleManager"),
 _
         System.Web.Configuration.RoleManagerSection)

        ' Display title and info.
        Console.WriteLine("ASP.NET Configuration Info")
        Console.WriteLine()

        ' Display Config details.
        Console.WriteLine("File Path: {0}", config.FilePath)
        Console.WriteLine("Section Path: {0}", configSection.SectionInformation.Name)

        ' Display CacheRolesInCookie property.
        Console.WriteLine("CacheRolesInCookie: {0}",
 _
         configSection.CacheRolesInCookie)

        ' Set CacheRolesInCookie property.
        configSection.CacheRolesInCookie = False

        ' Display CookieName property.
        Console.WriteLine("CookieName: {0}", configSection.CookieName)

        ' Set CookieName property.
        configSection.CookieName = ".ASPXROLES"

        ' Display CookiePath property.
        Console.WriteLine("CookiePath: {0}", configSection.CookiePath)

        ' Set CookiePath property.
        configSection.CookiePath = "/"

        ' Display CookieProtection property.
        Console.WriteLine("CookieProtection: {0}",
 _
         configSection.CookieProtection)

        ' Set CookieProtection property.
        configSection.CookieProtection = _
         System.Web.Security.CookieProtection.All

        ' Display CookieRequireSSL property.
        Console.WriteLine("CookieRequireSSL: {0}",
 _
         configSection.CookieRequireSSL)

        ' Set CookieRequireSSL property.
        configSection.CookieRequireSSL = False

        ' Display CookieSlidingExpiration property.
        Console.WriteLine("CookieSlidingExpiration: {0}",
 _
         configSection.CookieSlidingExpiration)

        ' Set CookieSlidingExpiration property.
        configSection.CookieSlidingExpiration = True

        ' Display CookieTimeout property.
        Console.WriteLine("CookieTimeout: {0}", configSection.CookieTimeout)

        ' Set CookieTimeout property.
        configSection.CookieTimeout = TimeSpan.FromMinutes(30)

        ' Display CreatePersistentCookie property.
        Console.WriteLine("CreatePersistentCookie: {0}",
 _
         configSection.CreatePersistentCookie)

        ' Set CreatePersistentCookie property.
        configSection.CreatePersistentCookie = False

        ' Display DefaultProvider property.
        Console.WriteLine("DefaultProvider: {0}",
 _
         configSection.DefaultProvider)

        ' Set DefaultProvider property.
        configSection.DefaultProvider = "AspNetSqlRoleProvider"

        ' Display Domain property.
        Console.WriteLine("Domain: {0}", configSection.Domain)

        ' Set Domain property.
        configSection.Domain = ""

        ' Display Enabled property.
        Console.WriteLine("Enabled: {0}", configSection.Enabled)

        ' Set CookieName property.
        configSection.Enabled = False

        ' Display the number of Providers
        Console.WriteLine("Providers Collection Count: {0}",
 _
         configSection.Providers.Count)

        ' Display elements of the Providers collection property.
        For Each providerItem As
 ProviderSettings In configSection.Providers()
          Console.WriteLine()
          Console.WriteLine("Provider Details:")
          Console.WriteLine("Name: {0}", providerItem.Name)
          Console.WriteLine("Type: {0}", providerItem.Type)
        Next

        ' Update if not locked.
        If Not configSection.SectionInformation.IsLocked
 Then
          config.Save()
          Console.WriteLine("** Configuration updated.")
        Else
          Console.WriteLine("** Could not update, section is locked.")
        End If

      Catch e As Exception
        ' Unknown error.
        Console.WriteLine(e.ToString())
      End Try

      ' Display and wait
      Console.ReadLine()
    End Sub
  End Class
End Namespace
#region Using directives

using System;
using System.Collections.Generic;
using System.Text;
using System.Configuration;
using System.Web;
using System.Web.Configuration;

#endregion

namespace Samples.Aspnet.SystemWebConfiguration
{
  class UsingRoleManagerSection
  {
    static void Main(string[]
 args)
    {
      try
      {
        // Set the path of the config file.
        string configPath = "";

        // Get the Web application configuration object.
        Configuration config = WebConfigurationManager.OpenWebConfiguration(configPath);

        // Get the section related object.
        RoleManagerSection configSection =
          (RoleManagerSection)config.GetSection("system.web/roleManager");

        // Display title and info.
        Console.WriteLine("ASP.NET Configuration Info");
        Console.WriteLine();

        // Display Config details.
        Console.WriteLine("File Path: {0}",
          config.FilePath);
        Console.WriteLine("Section Path: {0}",
          configSection.SectionInformation.Name);

        // Display CacheRolesInCookie property.
        Console.WriteLine("CacheRolesInCookie: {0}",
          configSection.CacheRolesInCookie);

        // Set CacheRolesInCookie property.
        configSection.CacheRolesInCookie = false;

        // Display CookieName property.
        Console.WriteLine("CookieName: {0}", configSection.CookieName);

        // Set CookieName property.
        configSection.CookieName = ".ASPXROLES";

        // Display CookiePath property.
        Console.WriteLine("CookiePath: {0}", configSection.CookiePath);

        // Set CookiePath property.
        configSection.CookiePath = "/";

        // Display CookieProtection property.
        Console.WriteLine("CookieProtection: {0}",
          configSection.CookieProtection);

        // Set CookieProtection property.
        configSection.CookieProtection =
          System.Web.Security.CookieProtection.All;

        // Display CookieRequireSSL property.
        Console.WriteLine("CookieRequireSSL: {0}",
          configSection.CookieRequireSSL);

        // Set CookieRequireSSL property.
        configSection.CookieRequireSSL = false;

        // Display CookieSlidingExpiration property.
        Console.WriteLine("CookieSlidingExpiration: {0}",
          configSection.CookieSlidingExpiration);

        // Set CookieSlidingExpiration property.
        configSection.CookieSlidingExpiration = true;

        // Display CookieTimeout property.
        Console.WriteLine("CookieTimeout: {0}", configSection.CookieTimeout);

        // Set CookieTimeout property.
        configSection.CookieTimeout = TimeSpan.FromMinutes(30);

        // Display CreatePersistentCookie property.
        Console.WriteLine("CreatePersistentCookie: {0}",
          configSection.CreatePersistentCookie);

        // Set CreatePersistentCookie property.
        configSection.CreatePersistentCookie = false;

        // Display DefaultProvider property.
        Console.WriteLine("DefaultProvider: {0}",
          configSection.DefaultProvider);

        // Set DefaultProvider property.
        configSection.DefaultProvider = "AspNetSqlRoleProvider";

        // Display Domain property.
        Console.WriteLine("Domain: {0}", configSection.Domain);

        // Set Domain property.
        configSection.Domain = "";

        // Display Enabled property.
        Console.WriteLine("Enabled: {0}", configSection.Enabled);

        // Set Enabled property.
        configSection.Enabled = false;

        // Display the number of Providers
        Console.WriteLine("Providers Collection Count: {0}",
          configSection.Providers.Count);

        // Display elements of the Providers collection property.
        foreach (ProviderSettings providerItem in
 configSection.Providers)
        {
          Console.WriteLine();
          Console.WriteLine("Provider Details:");
          Console.WriteLine("Name: {0}", providerItem.Name);
          Console.WriteLine("Type: {0}", providerItem.Type);
        }

        // Update if not locked.
        if (!configSection.SectionInformation.IsLocked)
        {
          config.Save();
          Console.WriteLine("** Configuration updated.");
        }
        else
        {
          Console.WriteLine("** Could not update, section is locked.");
        }
      }

      catch (Exception e)
      {
        // Unknown error.
        Console.WriteLine(e.ToString());
      }

      // Display and wait
      Console.ReadLine();
    }
  }
}
継承階層継承階層
System.Object
   System.Configuration.ConfigurationElement
     System.Configuration.ConfigurationSection
      System.Web.Configuration.RoleManagerSection
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバの場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
RoleManagerSection メンバ
System.Web.Configuration 名前空間
ConfigurationSection
RoleManagerModule
Roles
その他の技術情報
ロール管理について
roleManager 要素 (ASP.NET 設定スキーマ)

RoleManagerSection コンストラクタ

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

既定の設定を使用して RoleManagerSection クラスの新しいインスタンスを初期化します。

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

Dim instance As New RoleManagerSection
public RoleManagerSection ()
public:
RoleManagerSection ()
public RoleManagerSection ()
public function RoleManagerSection ()
解説解説

RoleManagerSection コンストラクタは、コードで直接使用するためのものではありません。ASP.NET 構成システムによって呼び出されます。RoleManagerSection クラスのインスタンスは、GetSection メソッドを使用して取得します。

RoleManagerSection コンストラクタに使用される既定の設定を次の表に示します。

プロパティ

既定値

Enabled

false

CacheRolesInCookie

false

CookieName

".ASPXROLES"

CookiePath

"/"

CookieProtection

All

CookieRequireSSL

false

CookieSlidingExpiration

true

CookieTimeout

30 分

CreatePersistentCookie

false

DefaultProvider

"AspNetSqlRoleProvider"

Domain

空の文字列 ("")

MaxCachedResults

25

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
RoleManagerSection クラス
RoleManagerSection メンバ
System.Web.Configuration 名前空間

RoleManagerSection プロパティ


パブリック プロパティパブリック プロパティ

( プロテクト プロパティ も参照)
  名前 説明
パブリック プロパティ CacheRolesInCookie 現在のユーザーのロールが Cookie にキャッシュされているかどうかを示す値を取得または設定します。
パブリック プロパティ CookieName ロール名をキャッシュするために使用される Cookie の名前を取得または設定します。
パブリック プロパティ CookiePath ロール名をキャッシュするために使用される Cookie の仮想パスを取得または設定します。
パブリック プロパティ CookieProtection ロール名をキャッシュする Cookie を保護するために使用されるセキュリティの種類を取得または設定します。
パブリック プロパティ CookieRequireSSL ロール名をキャッシュするために使用する Cookie をサーバーに返すために、SSL (Secure Sockets Layer) 接続が必要かどうかを示す値を取得または設定します。
パブリック プロパティ CookieSlidingExpiration ロール名をキャッシュするために使用される Cookie を定期的にリセットするかどうかを指定する値を取得または設定します。
パブリック プロパティ CookieTimeout ロール名をキャッシュするために使用される Cookie の有効期限が切れるまでの時間 (分) を取得または設定します。
パブリック プロパティ CreatePersistentCookie ロール名をキャッシュするために、セッションベースの Cookie、または永続的な Cookie のどちらを使用するのかを示します。
パブリック プロパティ DefaultProvider ロールを管理するために使用される既定のプロバイダの名前を取得または設定します。
パブリック プロパティ Domain ロール名をキャッシュするために使用される Cookie に関連付けられるドメインの名前を取得または設定します。
パブリック プロパティ ElementInformation  ConfigurationElement オブジェクトのカスタマイズできない情報と機能を格納する ElementInformation オブジェクトを取得します。 ( ConfigurationElement から継承されます。)
パブリック プロパティ Enabled ASP.NET のロール管理機能が有効かどうかを示す値を取得または設定します。
パブリック プロパティ LockAllAttributesExcept  ロックされている属性のコレクションを取得します。 ( ConfigurationElement から継承されます。)
パブリック プロパティ LockAllElementsExcept  ロックされている要素のコレクションを取得します。 ( ConfigurationElement から継承されます。)
パブリック プロパティ LockAttributes  ロックされている属性のコレクションを取得します。 ( ConfigurationElement から継承されます。)
パブリック プロパティ LockElements  ロックされている要素のコレクションを取得します。 ( ConfigurationElement から継承されます。)
パブリック プロパティ LockItem  要素がロックされているかどうかを示す値を取得または設定します。 ( ConfigurationElement から継承されます。)
パブリック プロパティ MaxCachedResults ASP.NET がロールの Cookie にキャッシュするロールの最大数を取得または設定します。
パブリック プロパティ Providers ProviderSettings 要素の ProviderSettingsCollection オブジェクトを取得します。
パブリック プロパティ SectionInformation  ConfigurationSection オブジェクトのカスタマイズできない情報と機能を格納する SectionInformation オブジェクトを取得します。 ( ConfigurationSection から継承されます。)
プロテクト プロパティプロテクト プロパティ
  名前 説明
プロテクト プロパティ ElementProperty  ConfigurationElement オブジェクト自体を表す ConfigurationElementProperty オブジェクトを取得します。 ( ConfigurationElement から継承されます。)
プロテクト プロパティ EvaluationContext  ConfigurationElement オブジェクトの ContextInformation オブジェクトを取得します。 ( ConfigurationElement から継承されます。)
プロテクト プロパティ Item  オーバーロードされます。 この ConfigurationElement オブジェクトのプロパティ、属性、または子要素を取得または設定します。 ( ConfigurationElement から継承されます。)
プロテクト プロパティ Properties  プロパティのコレクションを取得します。 ( ConfigurationElement から継承されます。)
参照参照

関連項目

RoleManagerSection クラス
System.Web.Configuration 名前空間
ConfigurationSection
RoleManagerModule
Roles

その他の技術情報

ロール管理について
roleManager 要素 (ASP.NET 設定スキーマ)

RoleManagerSection メソッド


パブリック メソッドパブリック メソッド

プロテクト メソッドプロテクト メソッド
  名前 説明
プロテクト メソッド DeserializeElement  構成ファイルから XML を読み取ります。 ( ConfigurationElement から継承されます。)
プロテクト メソッド DeserializeSection  構成ファイルから XML を読み取ります。 ( ConfigurationSection から継承されます。)
プロテクト メソッド Finalize  Object がガベージ コレクションにより収集される前に、その Object がリソースを解放し、その他のクリーンアップ操作を実行できるようにします。 ( Object から継承されます。)
プロテクト メソッド GetRuntimeObject  派生クラスでオーバーライドされると、カスタム オブジェクトを返します。 ( ConfigurationSection から継承されます。)
プロテクト メソッド Init  ConfigurationElement オブジェクトを初期状態に設定します。 ( ConfigurationElement から継承されます。)
プロテクト メソッド InitializeDefault  ConfigurationElement オブジェクトの既定の値セットを初期化するために使用します。 ( ConfigurationElement から継承されます。)
プロテクト メソッド IsModified  派生クラスに実装された場合、この構成要素が最後の保存または読み込み以降に変更されたかどうかを示します。 ( ConfigurationSection から継承されます。)
プロテクト メソッド ListErrors  この ConfigurationElement オブジェクトおよびすべてのサブ要素の無効なプロパティのエラーを、渡されたリストに追加します。 ( ConfigurationElement から継承されます。)
プロテクト メソッド MemberwiseClone  現在の Object の簡易コピーを作成します。 ( Object から継承されます。)
プロテクト メソッド OnDeserializeUnrecognizedAttribute  逆シリカル化中に不明な属性が発生したかどうかを示す値を取得します。 ( ConfigurationElement から継承されます。)
プロテクト メソッド OnDeserializeUnrecognizedElement  逆シリカル化中に不明な要素が発生したかどうかを示す値を取得します。 ( ConfigurationElement から継承されます。)
プロテクト メソッド OnRequiredPropertyNotFound  必須プロパティが見つからなかったかどうかを示す値を取得します。 ( ConfigurationElement から継承されます。)
プロテクト メソッド PostDeserialize  逆シリアル化後に呼び出されます。 ( ConfigurationElement から継承されます。)
プロテクト メソッド PreSerialize  シリアル化前に呼び出されます。 ( ConfigurationElement から継承されます。)
プロテクト メソッド Reset  ConfigurationElement オブジェクトの内部状態 (ロックやプロパティ コレクションなど) をリセットします。 ( ConfigurationElement から継承されます。)
プロテクト メソッド ResetModified  派生クラスに実装された場合、IsModified メソッドの値を false にリセットします。 ( ConfigurationSection から継承されます。)
プロテクト メソッド SerializeElement  派生クラスに実装されている場合、この構成要素の内容を構成ファイルに書き込みます。 ( ConfigurationElement から継承されます。)
プロテクト メソッド SerializeSection  ファイルに書き込む 1 つのセクションとして、ConfigurationSection オブジェクトのアンマージされたビューを含む XML 文字列を作成します。 ( ConfigurationSection から継承されます。)
プロテクト メソッド SerializeToXmlElement  派生クラスに実装されている場合、この構成要素の外側のタグを構成ファイルに書き込みます。 ( ConfigurationElement から継承されます。)
プロテクト メソッド SetPropertyValue  プロパティを指定した値に設定します。 ( ConfigurationElement から継承されます。)
プロテクト メソッド SetReadOnly  ConfigurationElement オブジェクトおよびすべてのサブ要素に IsReadOnly プロパティを設定します。 ( ConfigurationElement から継承されます。)
プロテクト メソッド Unmerge  保存しないすべての値を削除するには、ConfigurationElement オブジェクトを変更します。 ( ConfigurationElement から継承されます。)
参照参照

関連項目

RoleManagerSection クラス
System.Web.Configuration 名前空間
ConfigurationSection
RoleManagerModule
Roles

その他の技術情報

ロール管理について
roleManager 要素 (ASP.NET 設定スキーマ)

RoleManagerSection メンバ

Web アプリケーションのロール管理インフラストラクチャをサポートするために使用される構成設定を定義します。このクラスは継承できません。

RoleManagerSection データ型で公開されるメンバを以下の表に示します。


パブリック コンストラクタパブリック コンストラクタ
  名前 説明
パブリック メソッド RoleManagerSection 既定の設定を使用して RoleManagerSection クラスの新しいインスタンスを初期化します。
パブリック プロパティパブリック プロパティ
( プロテクト プロパティ も参照)
  名前 説明
パブリック プロパティ CacheRolesInCookie 現在のユーザーのロールが Cookie にキャッシュされているかどうかを示す値を取得または設定します。
パブリック プロパティ CookieName ロール名をキャッシュするために使用される Cookie の名前を取得または設定します。
パブリック プロパティ CookiePath ロール名をキャッシュするために使用される Cookie の仮想パスを取得または設定します。
パブリック プロパティ CookieProtection ロール名をキャッシュする Cookie を保護するために使用されるセキュリティの種類を取得または設定します。
パブリック プロパティ CookieRequireSSL ロール名をキャッシュするために使用する Cookie をサーバーに返すために、SSL (Secure Sockets Layer) 接続が必要かどうかを示す値を取得または設定します。
パブリック プロパティ CookieSlidingExpiration ロール名をキャッシュするために使用される Cookie を定期的にリセットするかどうかを指定する値を取得または設定します。
パブリック プロパティ CookieTimeout ロール名をキャッシュするために使用される Cookie の有効期限が切れるまでの時間 (分) を取得または設定します。
パブリック プロパティ CreatePersistentCookie ロール名をキャッシュするために、セッションベースの Cookie、または永続的な Cookie のどちらを使用するのかを示します。
パブリック プロパティ DefaultProvider ロールを管理するために使用される既定のプロバイダの名前を取得または設定します。
パブリック プロパティ Domain ロール名をキャッシュするために使用される Cookie に関連付けられるドメインの名前を取得または設定します。
パブリック プロパティ ElementInformation  ConfigurationElement オブジェクトのカスタマイズできない情報と機能を格納する ElementInformation オブジェクトを取得します。 (ConfigurationElement から継承されます。)
パブリック プロパティ Enabled ASP.NET のロール管理機能が有効かどうかを示す値を取得または設定します。
パブリック プロパティ LockAllAttributesExcept  ロックされている属性のコレクションを取得します。(ConfigurationElement から継承されます。)
パブリック プロパティ LockAllElementsExcept  ロックされている要素のコレクションを取得します。(ConfigurationElement から継承されます。)
パブリック プロパティ LockAttributes  ロックされている属性のコレクションを取得します。 (ConfigurationElement から継承されます。)
パブリック プロパティ LockElements  ロックされている要素のコレクションを取得します。(ConfigurationElement から継承されます。)
パブリック プロパティ LockItem  要素がロックされているかどうかを示す値を取得または設定します。(ConfigurationElement から継承されます。)
パブリック プロパティ MaxCachedResults ASP.NET がロールの Cookie にキャッシュするロールの最大数を取得または設定します。
パブリック プロパティ Providers ProviderSettings 要素の ProviderSettingsCollection オブジェクトを取得します。
パブリック プロパティ SectionInformation  ConfigurationSection オブジェクトのカスタマイズできない情報と機能を格納する SectionInformation オブジェクトを取得します。 (ConfigurationSection から継承されます。)
プロテクト プロパティプロテクト プロパティ
  名前 説明
プロテクト プロパティ ElementProperty  ConfigurationElement オブジェクト自体を表す ConfigurationElementProperty オブジェクトを取得します。(ConfigurationElement から継承されます。)
プロテクト プロパティ EvaluationContext  ConfigurationElement オブジェクトの ContextInformation オブジェクトを取得します。(ConfigurationElement から継承されます。)
プロテクト プロパティ Item  オーバーロードされます。 この ConfigurationElement オブジェクトのプロパティ、属性、または子要素を取得または設定します。(ConfigurationElement から継承されます。)
プロテクト プロパティ Properties  プロパティのコレクションを取得します。(ConfigurationElement から継承されます。)
パブリック メソッドパブリック メソッド
プロテクト メソッドプロテクト メソッド
  名前 説明
プロテクト メソッド DeserializeElement  構成ファイルから XML を読み取ります。 (ConfigurationElement から継承されます。)
プロテクト メソッド DeserializeSection  構成ファイルから XML を読み取ります。 (ConfigurationSection から継承されます。)
プロテクト メソッド Finalize  Object がガベージ コレクションにより収集される前に、その Object がリソースを解放し、その他のクリーンアップ操作を実行できるようにします。 (Object から継承されます。)
プロテクト メソッド GetRuntimeObject  派生クラスでオーバーライドされると、カスタム オブジェクトを返します。 (ConfigurationSection から継承されます。)
プロテクト メソッド Init  ConfigurationElement オブジェクトを初期状態に設定します。 (ConfigurationElement から継承されます。)
プロテクト メソッド InitializeDefault  ConfigurationElement オブジェクトの既定の値セットを初期化するために使用します。 (ConfigurationElement から継承されます。)
プロテクト メソッド IsModified  派生クラスに実装された場合、この構成要素が最後の保存または読み込み以降に変更されたかどうかを示します。 (ConfigurationSection から継承されます。)
プロテクト メソッド ListErrors  この ConfigurationElement オブジェクトおよびすべてのサブ要素の無効なプロパティのエラーを、渡されたリストに追加します。 (ConfigurationElement から継承されます。)
プロテクト メソッド MemberwiseClone  現在の Object の簡易コピーを作成します。 (Object から継承されます。)
プロテクト メソッド OnDeserializeUnrecognizedAttribute  逆シリカル化中に不明な属性が発生したかどうかを示す値を取得します。 (ConfigurationElement から継承されます。)
プロテクト メソッド OnDeserializeUnrecognizedElement  逆シリカル化中に不明な要素が発生したかどうかを示す値を取得します。 (ConfigurationElement から継承されます。)
プロテクト メソッド OnRequiredPropertyNotFound  必須プロパティが見つからなかったかどうかを示す値を取得します。 (ConfigurationElement から継承されます。)
プロテクト メソッド PostDeserialize  逆シリアル化後に呼び出されます。 (ConfigurationElement から継承されます。)
プロテクト メソッド PreSerialize  シリアル化前に呼び出されます。 (ConfigurationElement から継承されます。)
プロテクト メソッド Reset  ConfigurationElement オブジェクトの内部状態 (ロックやプロパティ コレクションなど) をリセットします。 (ConfigurationElement から継承されます。)
プロテクト メソッド ResetModified  派生クラスに実装された場合、IsModified メソッドの値を false にリセットします。 (ConfigurationSection から継承されます。)
プロテクト メソッド SerializeElement  派生クラスに実装されている場合、この構成要素の内容を構成ファイルに書き込みます。 (ConfigurationElement から継承されます。)
プロテクト メソッド SerializeSection  ファイルに書き込む 1 つのセクションとして、ConfigurationSection オブジェクトのアンマージされたビューを含む XML 文字列を作成します。 (ConfigurationSection から継承されます。)
プロテクト メソッド SerializeToXmlElement  派生クラスに実装されている場合、この構成要素の外側のタグを構成ファイルに書き込みます。 (ConfigurationElement から継承されます。)
プロテクト メソッド SetPropertyValue  プロパティを指定した値に設定します。 (ConfigurationElement から継承されます。)
プロテクト メソッド SetReadOnly  ConfigurationElement オブジェクトおよびすべてのサブ要素に IsReadOnly プロパティを設定します。 (ConfigurationElement から継承されます。)
プロテクト メソッド Unmerge  保存しないすべての値を削除するには、ConfigurationElement オブジェクトを変更します。 (ConfigurationElement から継承されます。)
参照参照

関連項目

RoleManagerSection クラス
System.Web.Configuration 名前空間
ConfigurationSection
RoleManagerModule
Roles

その他の技術情報

ロール管理について
roleManager 要素 (ASP.NET 設定スキーマ)



英和和英テキスト翻訳

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

辞書ショートカット

すべての辞書の索引

「RoleManagerSection」の関連用語

RoleManagerSectionのお隣キーワード
検索ランキング

   

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



RoleManagerSectionのページの著作権

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

©2026 GRAS Group, Inc.RSS