Edit

Share via


WebConfigurationManager.OpenMappedMachineConfiguration Method

Definition

Opens the machine-configuration file as a Configuration object to allow read or write operations.

Overloads

OpenMappedMachineConfiguration(ConfigurationFileMap, String)

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

OpenMappedMachineConfiguration(ConfigurationFileMap)

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

OpenMappedMachineConfiguration(ConfigurationFileMap, String)

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

public:
 static System::Configuration::Configuration ^ OpenMappedMachineConfiguration(System::Configuration::ConfigurationFileMap ^ fileMap, System::String ^ locationSubPath);
public static System.Configuration.Configuration OpenMappedMachineConfiguration (System.Configuration.ConfigurationFileMap fileMap, string locationSubPath);
static member OpenMappedMachineConfiguration : System.Configuration.ConfigurationFileMap * string -> System.Configuration.Configuration
Public Shared Function OpenMappedMachineConfiguration (fileMap As ConfigurationFileMap, locationSubPath As String) As Configuration

Parameters

fileMap
ConfigurationFileMap

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

locationSubPath
String

The specific resource to which the configuration applies.

Returns

A Configuration object.

Exceptions

A valid configuration file could not be loaded.

See also

Applies to

OpenMappedMachineConfiguration(ConfigurationFileMap)

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

public:
 static System::Configuration::Configuration ^ OpenMappedMachineConfiguration(System::Configuration::ConfigurationFileMap ^ fileMap);
public static System.Configuration.Configuration OpenMappedMachineConfiguration (System.Configuration.ConfigurationFileMap fileMap);
static member OpenMappedMachineConfiguration : System.Configuration.ConfigurationFileMap -> System.Configuration.Configuration
Public Shared Function OpenMappedMachineConfiguration (fileMap As ConfigurationFileMap) As Configuration

Parameters

fileMap
ConfigurationFileMap

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

Returns

A Configuration object.

Exceptions

A valid configuration file could not be loaded.

See also

Applies to