Edit

Share via


IServerWebConfig.AddElement Method

Definition

Adds XML elements to a Web.config file for a COM interface being published in a SOAP-enabled COM+ application.

This API supports the product infrastructure and is not intended to be used directly from your code.

public:
 void AddElement(System::String ^ FilePath, System::String ^ AssemblyName, System::String ^ TypeName, System::String ^ ProgId, System::String ^ Mode, [Runtime::InteropServices::Out] System::String ^ % Error);
public void AddElement (string FilePath, string AssemblyName, string TypeName, string ProgId, string Mode, out string Error);
abstract member AddElement : string * string * string * string * string * string -> unit
Public Sub AddElement (FilePath As String, AssemblyName As String, TypeName As String, ProgId As String, Mode As String, ByRef Error As String)

Parameters

FilePath
String

The path for the existing Web.config file.

AssemblyName
String

The name of the assembly that contains the type being added.

TypeName
String

The name of the type being added.

ProgId
String

The programmatic identifier for the type being added.

Mode
String

A string constant that corresponds to the name of a member from the WellKnownObjectMode enumeration, which indicates how a well-known object is activated.

Error
String

A string to which an error message can be written.

Remarks

See the AddElement method for implementation details. However, you do not need to call AddElement method directly.

Applies to