ConfigurationSection.SectionInformation プロパティとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > ConfigurationSection.SectionInformation プロパティの意味・解説 

ConfigurationSection.SectionInformation プロパティ

メモ : このプロパティは、.NET Framework version 2.0新しく追加されたものです。

ConfigurationSection オブジェクトカスタマイズできない情報機能格納する SectionInformation オブジェクト取得します

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

Public ReadOnly Property
 SectionInformation As SectionInformation
Dim instance As ConfigurationSection
Dim value As SectionInformation

value = instance.SectionInformation
public SectionInformation SectionInformation { get;
 }
public:
property SectionInformation^ SectionInformation {
    SectionInformation^ get ();
}
/** @property */
public SectionInformation get_SectionInformation ()
public function get SectionInformation
 () : SectionInformation

プロパティ
ConfigurationSection オブジェクトカスタマイズできない情報機能格納する SectionInformation オブジェクト

使用例使用例

SectionInformation使用する方法の例を次に示します

Shared Sub DisplayCustomSectionInformation()
   
   Try
      Dim customSection As CustomSection
      
      customSection = ConfigurationManager.GetSection("CustomSection")
     
      If customSection Is Nothing
 Then
         Console.WriteLine(("Failed to load " + "CustomSection"
 + "."))
      Else
         ' Display specific information
         Console.WriteLine("Defaults:")
         Console.WriteLine("File Name:       {0}",
 customSection.FileName)
             Console.WriteLine("Max Users:       {0}",
 customSection.MaxUsers.ToString())
             Console.WriteLine("Max Idle Time:   {0}",
 customSection.MaxIdleTime.ToString())
         
         ' Display generic information
         Console.WriteLine("Generic information:")
         Console.WriteLine("AllowExeDefinition:  {0}",
 customSection.SectionInformation.AllowExeDefinition.ToString())
         Console.WriteLine("IsLocked:            {0}",
 customSection.SectionInformation.IsLocked.ToString())
      End If
   
   Catch err As ConfigurationErrorsException
      Console.WriteLine(err.ToString())
   End Try
End Sub 'DisplayCustomSectionInformation

static void DisplayCustomSectionInformation()
{

    try
    {
        CustomSection customSection;

        customSection =
            ConfigurationManager.GetSection("CustomSection") as CustomSection;

        if (customSection == null)
            Console.WriteLine("Failed to load " + "CustomSection"
 + ".");
        else
        {
            // Display specific information
            Console.WriteLine("Defaults:");
            Console.WriteLine("File Name:       {0}", customSection.FileName);
            Console.WriteLine("Max Users:       {0}", customSection.MaxUsers);
            Console.WriteLine("Max Idle Time:   {0}", customSection.MaxIdleTime);

            // Display generic information
            Console.WriteLine("Generic information:");
            Console.WriteLine("AllowExeDefinition:  {0}",
                customSection.SectionInformation.AllowExeDefinition.ToString());
            Console.WriteLine("IsLocked:            {0}",
                customSection.SectionInformation.IsLocked.ToString());

        }
    }
    catch (ConfigurationErrorsException err)
    {
        Console.WriteLine(err.ToString());
    }
    
}

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照


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

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

辞書ショートカット

すべての辞書の索引

ConfigurationSection.SectionInformation プロパティのお隣キーワード
検索ランキング

   

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



ConfigurationSection.SectionInformation プロパティのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2025 GRAS Group, Inc.RSS