HttpContextWrapper.GetSection(String) 方法

定義

取得目前應用程式預設設定的指定配置區塊。

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

參數

sectionName
String

配置區段路徑(XPath格式)與配置元素名稱。

傳回

指定區段,或 null 若該區段不存在。

適用於