ServerManager.GetAdministrationConfiguration Method (WebConfigurationMap, String)

IIS 7.0
 

Returns a Configuration object for the Administration.config file by using the specified WebConfigurationMap object and configuration file path.

Namespace:   Microsoft.Web.Administration
Assembly:  Microsoft.Web.Administration (in Microsoft.Web.Administration.dll)

public Configuration GetAdministrationConfiguration(
	WebConfigurationMap configMap,
	string configurationPath
)

Parameters

configMap
Type: Microsoft.Web.Administration.WebConfigurationMap

A custom WebConfigurationMap object.

configurationPath
Type: System.String

A custom configuration file path.

Return Value

Type: Microsoft.Web.Administration.Configuration

A Configuration object for the Administration.config file.

Use this overload to specify a custom WebConfigurationMap object and configuration file path. Use the GetAdministrationConfiguration() overload, which takes no parameters, to return the Administration.config file that is located in the default configuration file path in the %system%\inetsrv\config directory.

Return to top
Show: