System.Web.Configuration.WebConfigurationManager.OpenMachineConfiguration Method

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

Syntax

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

Parameters

locationSubPath
The application path to which the configuration applies.
server
The fully qualified name of the server to return the configuration for.

Returns

A System.Configuration.Configuration object.

Remarks

This method opens the machine-configuration file that is located in the directory specified by the locationSubPath parameter and on the computer specified by the server parameter.

Requirements

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