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()
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
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
FindComponentById(IContainer, Guid, ref IContainer)
Declaration
public static IComponent FindComponentById(this IContainer container, Guid id, ref IContainer personalizationContainer)
Parameters
Returns
FindContainerByPlugInArea(IContainer, String)
Declaration
public static IContainer FindContainerByPlugInArea(this IContainer container, string plugInArea)
Parameters
Type |
Name |
Description |
IContainer |
container |
|
System.String |
plugInArea |
|
Returns
GetComponentList(IContainer)
Declaration
public static IEnumerable<string> GetComponentList(this IContainer container)
Parameters
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