語言

IInternalConfigHost.CreateConfigurationContext(String, String) 方法

定義

建立並回傳應用程式 ConfigurationElement 設定的上下文物件。

public:
 System::Object ^ CreateConfigurationContext(System::String ^ configPath, System::String ^ locationSubPath);
public object CreateConfigurationContext(string configPath, string locationSubPath);
abstract member CreateConfigurationContext : string * string -> obj
Public Function CreateConfigurationContext (configPath As String, locationSubPath As String) As Object

參數

configPath
String

一個字串代表應用程式設定檔的路徑。

locationSubPath
String

一個字串代表配置元素的子路徑位置。

傳回

一個用於應用程式 ConfigurationElement 設定物件的上下文物件。

適用於