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 ()

Returns

A System.Configuration.Configuration object.

Remarks

The System.Configuration.ConfigurationManager.OpenMachineConfiguration method opens the machine-configuration file on the computer where the application runs. This file is located in the standard build directory %windir%\Microsoft.NET\Framework\version\config.

Requirements

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