Class ModulesElementCollection

Tells the application where to look for modules. The modules will be auto-discovered from the resource root path but can also be explicitly added to the module element collection which is requierd when using custom virtual path providers.

Inheritance
System.Object
ModulesElementCollection
Namespace: EPiServer.Shell.Configuration
Assembly: EPiServer.Shell.dll
Version: 8.11.0
Syntax
public class ModulesElementCollection : ConfigurationElementCollection

Constructors

ModulesElementCollection()

Declaration
public ModulesElementCollection()

Properties

AutoDiscovery

Option for probing the the module folder and load of module assemblies automatically on start-up.

Declaration
public AutoDiscoveryLevel AutoDiscovery { get; set; }
Property Value
Type Description
AutoDiscoveryLevel

RootPath

The root path below which module directories are located.

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

Methods

Add(ModuleElement)

Adds a module element to the module collection.

Declaration
public void Add(ModuleElement module)
Parameters
Type Name Description
ModuleElement module

The module to add

CreateNewElement()

Creates a new System.Configuration.ConfigurationElement.

Declaration
protected override ConfigurationElement CreateNewElement()
Returns
Type Description
System.Configuration.ConfigurationElement

A new ModuleElement.

GetElementKey(ConfigurationElement)

Gets the element key for a specified configuration element.

Declaration
protected override object GetElementKey(ConfigurationElement element)
Parameters
Type Name Description
System.Configuration.ConfigurationElement element

The System.Configuration.ConfigurationElement to return the key for.

Returns
Type Description
System.Object

An System.Object that acts as the key for the specified System.Configuration.ConfigurationElement.