ServerWebConfig.Create(String, String, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a Web.config file for a SOAP-enabled COM+ application so that the file is ready to have XML elements added for COM interfaces being published.
This API supports the product infrastructure and is not intended to be used directly from your code.
public:
virtual void Create(System::String ^ FilePath, System::String ^ FilePrefix, [Runtime::InteropServices::Out] System::String ^ % Error);
public void Create (string FilePath, string FilePrefix, out string Error);
abstract member Create : string * string * string -> unit
override this.Create : string * string * string -> unit
Public Sub Create (FilePath As String, FilePrefix As String, ByRef Error As String)
Parameters
- FilePath
- String
The folder in which the configuration file should be created.
- FilePrefix
- String
The string value "Web", to which a config extension is added.
- Error
- String
A string to which an error message can be written.
Implements
Remarks
The Create method creates a Web.config file that contains the hierarchy for an empty element with the following XPath:
/configuration/system.runtime.remoting/application/service
Instead of instantiating a ServerWebConfig class object and calling Create directly, call the CreateVirtualRoot method.