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 、実行時にセクションにアクセスできない場合は内部オブジェクト。

適用対象

こちらもご覧ください