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

Class IContainerExtensions

Inheritance
System.Object
IContainerExtensions
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 static class IContainerExtensions

Methods

AddAndSave(IContainer, ICompositeView, IPrincipal, IComponent)

Declaration
public static void AddAndSave(this IContainer container, ICompositeView view, IPrincipal principal, IComponent component)
Parameters
Type Name Description
IContainer container
ICompositeView view
System.Security.Principal.IPrincipal principal
IComponent component

AddComponentsRecursive(IContainer, String, IEnumerable<IPluggableComponentDefinition>, IPrincipal)

Declaration
public static void AddComponentsRecursive(this IContainer container, string viewName, IEnumerable<IPluggableComponentDefinition> pluggableComponents, IPrincipal principal)
Parameters
Type Name Description
IContainer container
System.String viewName
System.Collections.Generic.IEnumerable<IPluggableComponentDefinition> pluggableComponents
System.Security.Principal.IPrincipal principal

FindComponentById(IContainer, Guid)

Declaration
public static IComponent FindComponentById(this IContainer container, Guid id)
Parameters
Type Name Description
IContainer container
System.Guid id
Returns
Type Description
IComponent

FindComponentById(IContainer, Guid, ref IContainer)

Declaration
public static IComponent FindComponentById(this IContainer container, Guid id, ref IContainer personalizationContainer)
Parameters
Type Name Description
IContainer container
System.Guid id
IContainer personalizationContainer
Returns
Type Description
IComponent

FindContainerByPlugInArea(IContainer, String)

Declaration
public static IContainer FindContainerByPlugInArea(this IContainer container, string plugInArea)
Parameters
Type Name Description
IContainer container
System.String plugInArea
Returns
Type Description
IContainer

GetComponentList(IContainer)

Declaration
public static IEnumerable<string> GetComponentList(this IContainer container)
Parameters
Type Name Description
IContainer container
Returns
Type Description
System.Collections.Generic.IEnumerable<System.String>

RemoveComponentsRecursive(IContainer, IEnumerable<IComponentMatcher>, Boolean)

Declaration
public static void RemoveComponentsRecursive(this IContainer container, IEnumerable<IComponentMatcher> componentMatchers, bool notifyComponentOnRemoval)
Parameters
Type Name Description
IContainer container
System.Collections.Generic.IEnumerable<IComponentMatcher> componentMatchers
System.Boolean notifyComponentOnRemoval

ReplaceContainersRecursive(IContainer, IEnumerable<IContainer>, IComponentManager)

Declaration
public static void ReplaceContainersRecursive(this IContainer container, IEnumerable<IContainer> replacementContainers, IComponentManager componentManager)
Parameters
Type Name Description
IContainer container
System.Collections.Generic.IEnumerable<IContainer> replacementContainers
IComponentManager componentManager