語言

IInternalConfigHost.PrefetchSection(String, String) 方法

定義

指示 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。

適用於