IInternalConfigHost.PrefetchSection(String, String) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
指示 IInternalConfigHost 物件讀取其相關設定檔的指定區段。
public:
bool PrefetchSection(System::String ^ sectionGroupName, System::String ^ sectionName);
public bool PrefetchSection(string sectionGroupName, string sectionName);
abstract member PrefetchSection : string * string -> bool
Public Function PrefetchSection (sectionGroupName As String, sectionName As String) As Boolean
參數
- sectionGroupName
- String
一個字串代表設定檔區段群組的識別名稱。
- sectionName
- String
一個字串,代表設定檔區段的識別名稱。
傳回
true 如果由 sectionGroupName 和 sectionName 指定的設定檔區段可被 Stream 物件讀取;否則, false。