WebConfigurationManager.OpenMappedMachineConfiguration Method (ConfigurationFileMap, String)

 

Opens the machine-configuration file as a Configuration object using the specified file mapping and location to allow read or write operations.

Namespace:   System.Web.Configuration
Assembly:  System.Web (in System.Web.dll)

public static Configuration OpenMappedMachineConfiguration(
	ConfigurationFileMap fileMap,
	string locationSubPath
)

Parameters

fileMap
Type: System.Configuration.ConfigurationFileMap

The ConfigurationFileMap object to use in place of a default machine-configuration file.

locationSubPath
Type: System.String

The specific resource to which the configuration applies.

Exception Condition
ConfigurationErrorsException

A valid configuration file could not be loaded.

.NET Framework
Available since 2.0
Return to top
Show: