Carrotware.CMS.Core.ContentPage.GetWidgetList C# (CSharp) Метод

GetWidgetList() публичный Метод

public GetWidgetList ( ) : List
Результат List
        public List<Widget> GetWidgetList()
        {
            List<Widget> widgets = null;

            using (WidgetHelper pwh = new WidgetHelper()) {
                widgets = pwh.GetWidgets(this.Root_ContentID, false);
            }

            return widgets;
        }

Usage Example

Пример #1
0
        public ContentPageExport(Guid siteID, Guid rootContentID)
        {
            ContentPage cp = null;

            using (ContentPageHelper cph = new ContentPageHelper()) {
                cp = cph.FindContentByID(siteID, rootContentID);
            }

            List <Widget> widgets = cp.GetWidgetList();

            SetVals(cp, widgets);
        }
All Usage Examples Of Carrotware.CMS.Core.ContentPage::GetWidgetList