WebConfigurationMap Constructor (String, String)

IIS 7.0
 

Initializes a new instance of the WebConfigurationMap class by using the specified path values for the Machine.config and root Web.config files.

Namespace:   Microsoft.Web.Administration
Assembly:  Microsoft.Web.Administration (in Microsoft.Web.Administration.dll)

public WebConfigurationMap(
	string machineConfigurationPath,
	string rootWebConfigurationPath
)

Parameters

machineConfigurationPath
Type: System.String

The path of the Machine.config file.

rootWebConfigurationPath
Type: System.String

The path of the root Web.config file.

You can use this constructor to override the default configuration paths that IIS uses. You can pass a valid configuration file path or null to either or both parameters of this constructor.

Return to top
Show: