GetWebConfiguration Method (WebConfigurationMap, String)
Collapse the table of content
Expand the table of content

ServerManager.GetWebConfiguration Method (WebConfigurationMap, String)

IIS 7.0
 

Returns a Configuration object for a Web.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 GetWebConfiguration(
	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 Web.config file.

Exception Condition
System.ArgumentNullException

configMap is null.

Return to top
Show:
© 2016 Microsoft