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

Class EPiServerSection

Inheritance
System.Object
EPiServerSection
Namespace: EPiServer.Configuration
Assembly: EPiServer.Configuration.dll
Version: 8.11.0
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

DynamicContentSettings

Holds settings related to Dynamic content.

Declaration
public DynamicContentElement DynamicContentSettings { get; }
Property Value
Type Description
DynamicContentElement

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.

PageProvider

Declaration
[Obsolete("Use ContentProvider configuration instead", true)]
public PageProvider PageProvider { get; }
Property Value
Type Description
PageProvider

Sites

reference collection

Declaration
[Obsolete("CMS sites are not setup in configuration anymore. Common settings are set on 'applicationSettings' Use SiteDefinitionRepository to create sites.")]
public SiteElementCollection Sites { get; }
Property Value
Type Description
SiteElementCollection

TinyMCESettings

Declaration
public TinyMCEElement TinyMCESettings { get; }
Property Value
Type Description
TinyMCEElement

UrlRewriteSettings

Declaration
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.

WorkflowSettings

Declaration
public WorkflowSettingsElement WorkflowSettings { get; }
Property Value
Type Description
WorkflowSettingsElement

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