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

WebControlsSection クラス

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

webControls セクション構成します。このクラス継承できません。

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

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

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

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

' Get the <webControls> section.
Dim webControlsSection _
As WebControlsSection = _
CType(configuration.GetSection( _
"system.web/webControls"), WebControlsSection)

' Read the client script location.
Dim clientScriptLocation As String
 = _
webControlsSection.ClientScriptsLocation

Dim msg As String = _
String.Format( _
"Client script location: {0}" + _
ControlChars.Lf, clientScriptLocation)
Console.Write(msg)

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

// Get the <webControls> section.
WebControlsSection webControlsSection =
  (WebControlsSection)configuration.GetSection(
  "system.web/webControls");

// Read the client script location.
string clientScriptLocation =
    webControlsSection.ClientScriptsLocation;

string msg = String.Format(
"Client script location: {0}\n",
clientScriptLocation);

Console.Write(msg);

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



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

辞書ショートカット

すべての辞書の索引

「WebControlsSection クラス」の関連用語

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

   

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



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

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

©2025 GRAS Group, Inc.RSS