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

Class ComponentManager

Inheritance
System.Object
ComponentManager
Implements
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Shell.ViewComposition
Assembly: EPiServer.Shell.dll
Version: 11.20.7
Syntax
public class ComponentManager : IComponentManager

Constructors

ComponentManager(IEnumerable<IComponentProvider>)

Declaration
public ComponentManager(IEnumerable<IComponentProvider> componentProviders)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<IComponentProvider> componentProviders

ComponentManager(IEnumerable<IComponentProvider>, EPiServerShellSection)

Declaration
[Obsolete("Use constructor with SecuredComponentOptions instead. Will remain at least until dec 2018.")]
public ComponentManager(IEnumerable<IComponentProvider> componentProviders, EPiServerShellSection shellSection)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<IComponentProvider> componentProviders
EPiServerShellSection shellSection

ComponentManager(IEnumerable<IComponentProvider>, SecuredComponentOptions)

Declaration
public ComponentManager(IEnumerable<IComponentProvider> componentProviders, SecuredComponentOptions options)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<IComponentProvider> componentProviders
SecuredComponentOptions options

Methods

CreateComponent(IComponentDefinition, IPrincipal)

Declaration
public IComponent CreateComponent(IComponentDefinition definition, IPrincipal principal)
Parameters
Type Name Description
IComponentDefinition definition
System.Security.Principal.IPrincipal principal
Returns
Type Description
IComponent

CreateComponent(String, IPrincipal)

Declaration
public IComponent CreateComponent(string componentDefinitionName, IPrincipal principal)
Parameters
Type Name Description
System.String componentDefinitionName
System.Security.Principal.IPrincipal principal
Returns
Type Description
IComponent

GetCategories(IPrincipal)

Declaration
public IEnumerable<string> GetCategories(IPrincipal principal)
Parameters
Type Name Description
System.Security.Principal.IPrincipal principal
Returns
Type Description
System.Collections.Generic.IEnumerable<System.String>

GetComponentDefinition(String)

Declaration
public IComponentDefinition GetComponentDefinition(string name)
Parameters
Type Name Description
System.String name
Returns
Type Description
IComponentDefinition

List(IPrincipal, String, Boolean)

Declaration
public IEnumerable<IComponentDefinition> List(IPrincipal principal, string category, bool onlyShowComponentsAvailableForUserSelection)
Parameters
Type Name Description
System.Security.Principal.IPrincipal principal
System.String category
System.Boolean onlyShowComponentsAvailableForUserSelection
Returns
Type Description
System.Collections.Generic.IEnumerable<IComponentDefinition>

ListAll()

Declaration
public IEnumerable<IComponentDefinition> ListAll()
Returns
Type Description
System.Collections.Generic.IEnumerable<IComponentDefinition>

Implements

Extension Methods