System.Web.Configuration.WebConfigurationManager.OpenMachineConfiguration Method

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

Syntax

public static System.Configuration.Configuration OpenMachineConfiguration (string locationSubPath)

Parameters

locationSubPath
The application path to which the machine configuration applies.

Returns

A System.Configuration.Configuration object.

Remarks

This method opens the machine-configuration file that is applicable to the directory specified by the locationSubPath parameter.

Requirements

Namespace: System.Web.Configuration
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0