HttpContext.GetSection(String) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
會獲得目前應用程式預設設定的指定配置區塊。
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 若執行時無法存取該區段,則為內部物件。