November Happy Hour will be moved to Thursday December 5th.

Class EPiServerSection

Inheritance
System.Object
EPiServerSection
Namespace: EPiServer.Configuration
Assembly: EPiServer.Configuration.dll
Version: 11.20.7
Syntax
[ServiceConfiguration(FactoryMember = "Instance")]
public class EPiServerSection : ConfigurationSection

Constructors

EPiServerSection()

Declaration
public EPiServerSection()

Properties

ApplicationSettings

Gets the application settings.

Declaration
public Settings ApplicationSettings { get; }
Property Value
Type Description
Settings

The application settings.

ConfigurationInstance

Gets and sets the current configuration to use

Declaration
[Obsolete("Use ConfigurationSource.Instance = new FileConfigurationSource(value) to replace global configuration or use GlobalConfigurationManager to Load and Save configuration files")]
public static Configuration ConfigurationInstance { get; set; }
Property Value
Type Description
System.Configuration.Configuration

ContentProvider

Declaration
public ContentProviderElement ContentProvider { get; }
Property Value
Type Description
ContentProviderElement

ImageEditorSettings

Gets the settings for the EPiServer Image Editor.

Declaration
public ImageEditorElement ImageEditorSettings { get; }
Property Value
Type Description
ImageEditorElement

Instance

Declaration
public static EPiServerSection Instance { get; }
Property Value
Type Description
EPiServerSection

LinkValidator

Gets the settings for the link validator.

Declaration
public LinkValidatorElement LinkValidator { get; }
Property Value
Type Description
LinkValidatorElement

The link validator.

UrlRewriteSettings

Declaration
[Obsolete("URL Rewrite providers have been replaced with ASP.NET Routing")]
public UrlRewriteElement UrlRewriteSettings { get; }
Property Value
Type Description
UrlRewriteElement

VirtualPathMappings

Declaration
[Obsolete("Virtual path mappings configuration has been moved to EPiServer.Framework.Configuration.EPiServerFrameworkSection", true)]
public UrlMappingCollection VirtualPathMappings { get; }
Property Value
Type Description
System.Web.Configuration.UrlMappingCollection

VirtualPathSettings

Declaration
[Obsolete("Virtual path settings has been moved to EPiServer.Framework.Configuration.EPiServerFrameworkSection", true)]
public VirtualPathElement VirtualPathSettings { get; }
Property Value
Type Description
VirtualPathElement

VisitorGroup

Gets the settings for the visitor group.

Declaration
public VisitorGroupElement VisitorGroup { get; }
Property Value
Type Description
VisitorGroupElement

The visitor group.

XmlNamespace

XmlNamespace property is required to allow the xmlns declaration on the EPiServer configuration element. xmlns value is not used by the configuration but is needed since the configuration can contain the namespace information in order for VS intellisense to work.

Declaration
public string XmlNamespace { get; set; }
Property Value
Type Description
System.String

Methods

GetAndValidateSection(Configuration)

Declaration
public static EPiServerSection GetAndValidateSection(Configuration config)
Parameters
Type Name Description
System.Configuration.Configuration config
Returns
Type Description
EPiServerSection

InitializeDefault()

Declaration
protected override void InitializeDefault()

TryGetInstance(out EPiServerSection)

Declaration
public static bool TryGetInstance(out EPiServerSection instance)
Parameters
Type Name Description
EPiServerSection instance
Returns
Type Description
System.Boolean

Extension Methods