Dynamicweb.eCommerce.Products Namespace : DetailCollection Class |
'Declaration
<SerializableAttribute()> Public Class DetailCollection Inherits System.Collections.ObjectModel.Collection(Of Detail)
[SerializableAttribute()] public class DetailCollection : System.Collections.ObjectModel.Collection<Detail>
class MyPage : System.Web.UI.Page { public void RenderDetails(DetailCollection Details, Dynamicweb.Rendering.Template ParentTemplate, string LoopName) { if (ParentTemplate.LoopExists(LoopName)) { Dynamicweb.Rendering.Template DetailTemplate = ParentTemplate.GetLoop(LoopName); foreach (Detail dtl in Details) { RenderDetail(dtl, DetailTemplate); DetailTemplate.CommitLoop(); } } } private void RenderDetail(Detail dtl, Dynamicweb.Rendering.Template template) { //TODO: insert your code here } }
System.Object
System.Collections.ObjectModel.Collection<T>
Dynamicweb.eCommerce.Products.DetailCollection
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2