HttpContext.GetSection(String) メソッド

定義

現在のアプリケーションの既定構成の、指定した構成セクションを取得します。

public:
 System::Object ^ GetSection(System::String ^ sectionName);
public object GetSection (string sectionName);
member this.GetSection : string -> obj
Public Function GetSection (sectionName As String) As Object

パラメーター

sectionName
String

構成セクション パス (XPath 形式) および構成要素名。

戻り値

指定した ConfigurationSection。このセクションが存在しない場合は null。このセクションに実行時にアクセスできない場合は内部オブジェクト。

適用対象

こちらもご覧ください