语言

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。

适用于