WebConfigurationManager.OpenMappedMachineConfiguration Method (ConfigurationFileMap, String)
.NET Framework (current version)
Opens the machine-configuration file as a Configuration object using the specified file mapping and location to allow read or write operations.
Assembly: System.Web (in System.Web.dll)
Public Shared Function OpenMappedMachineConfiguration ( fileMap As ConfigurationFileMap, locationSubPath As String ) As Configuration
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
Available since 2.0
Show: