IServerWebConfig.Create(String, String, String) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
為啟用 SOAP 的 COM+ 應用程式建立 Web.config 檔,以便在檔案中加入所發行 COM 介面的 XML 項目。
此 API 支援此產品基礎結構,但無法直接用於程式碼之中。
public:
void Create(System::String ^ FilePath, System::String ^ FileRootName, [Runtime::InteropServices::Out] System::String ^ % Error);
public void Create (string FilePath, string FileRootName, out string Error);
abstract member Create : string * string * string -> unit
Public Sub Create (FilePath As String, FileRootName As String, ByRef Error As String)
參數
- FilePath
- String
用來建立組態檔的資料夾。
- FileRootName
- String
可以加上 config 副檔名的字串值 (例如 Web.config 的 Web)。
- Error
- String
可以用來寫入錯誤訊息的字串。
備註
如需實作詳細數據, Create 請參閱 方法。 不過,您不需要直接呼叫 Create
。