Class Container

Conatiner of the Gadget list int the Tab.

Inheritance
System.Object
Container
Implements
System.ICloneable
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.Dashboard
Assembly: EPiServer.Shell.dll
Version: 8.11.0
Syntax
[Obsolete("The EPiServer 6 Dashboard has been replaced with EPiServer.ViewComposition namespace.")]
public class Container : ICloneable

Constructors

Container()

Initializes a new instance of the Container class.

Declaration
public Container()

Properties

Gadgets

Gets the gadgets.

Declaration
public Collection<Gadget> Gadgets { get; }
Property Value
Type Description
System.Collections.ObjectModel.Collection<Gadget>

The gadgets.

Id

Container Id

Declaration
public Guid Id { get; set; }
Property Value
Type Description
System.Guid

Methods

Clone()

Creates a new object that is a copy of the current instance.

Declaration
public object Clone()
Returns
Type Description
System.Object

A new object that is a copy of this instance.

GetActiveGadgets(RequestContext)

Gets the active gadgets.

Declaration
public IEnumerable<Gadget> GetActiveGadgets(RequestContext context)
Parameters
Type Name Description
System.Web.Routing.RequestContext context
Returns
Type Description
System.Collections.Generic.IEnumerable<Gadget>

GetGadget(Guid)

Gets the gadget.

Declaration
public Gadget GetGadget(Guid gadgetId)
Parameters
Type Name Description
System.Guid gadgetId

The gadget id.

Returns
Type Description
Gadget

A Gadget or null

InsertGadget(Int32, Gadget)

Inserts the gadget.

Declaration
public void InsertGadget(int index, Gadget gadget)
Parameters
Type Name Description
System.Int32 index

The index to insert to.

Gadget gadget

The gadget.

Merge(Container)

Merges the specified container into this.

Declaration
public void Merge(Container container)
Parameters
Type Name Description
Container container

The container.

RemoveGadgetsMarkedAsDeleted()

Removes Gadgets instances that has been marked as IsDeletetd.

Declaration
public void RemoveGadgetsMarkedAsDeleted()

Implements

System.ICloneable