共用方式為


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

可以加上 config 副檔名的字串值 (例如 Web.config 的 Web)。

Error
String

可以用來寫入錯誤訊息的字串。

備註

如需實作詳細數據, Create 請參閱 方法。 不過,您不需要直接呼叫 Create

適用於