語言

IServerWebConfig.Create(String, String, String) 方法

定義

為支援 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

可加入設定擴充功能的字串值(例如 Web for Web.config)。

Error
String

一個可以寫入錯誤訊息的字串。

備註

請參閱 Create 方法以了解實作細節。 不過,你不必直接打電話 Create 。

適用於