IInternalConfigHost.CreateConfigurationContext(String, String) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
建立並回傳應用程式 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 設定物件的上下文物件。