Export (0) Print
Expand All

ServerWebConfig.AddElement Method

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

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

Namespace:  System.EnterpriseServices.Internal
Assembly:  System.EnterpriseServices (in System.EnterpriseServices.dll)

public void AddElement(
	string FilePath,
	string AssemblyName,
	string TypeName,
	string ProgId,
	string WkoMode,
	out string Error
)

Parameters

FilePath
Type: System.String

The path of the existing Web.config file.

AssemblyName
Type: System.String

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

TypeName
Type: System.String

The name of the type being added.

ProgId
Type: System.String

The programmatic identifier for the type being added.

WkoMode
Type: System.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
Type: System.String

A string to which an error message can be written.

Implements

IServerWebConfig.AddElement(String, String, String, String, String, String)

For the specified type, the AddElement method adds to the Web.config file the <wellknown> and <activated> elements as children of the <service> element with the following XPath:

/configuration/system.runtime.remoting/application/service

The AssemblyName, TypeName, ProgId, and WkoMode parameters are incorporated into the attribute values of the two added elements.

AddElement should not be called directly. Instead, call the ProcessServerTlb method.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft