Maps a host name to a Settings instance.

Namespace:  EPiServer.Configuration
Assembly:  EPiServer.Configuration (in EPiServer.Configuration.dll) Version: 5.2.375.236

Syntax

C#
public static Settings MapHostToSettings(
	string hostName,
	bool fallback
)

Parameters

hostName
Type: System..::.String
The host name.
fallback
Type: System..::.Boolean
Specifies whether to use a fallback settings instance or not.

Return Value

A Settings instance with configuration information to handle this request.

Remarks

This is used for EPiServer Enterprise solutions where you have multiple <settings> sections in the same web.config file.

See Also