Acceleratio.SPDG.Generator.Client.SPModel.SPDGClientWeb.AddList C# (CSharp) Method

AddList() public method

public AddList ( string title, string description, int templateId ) : System.Guid
title string
description string
templateId int
return System.Guid
        public override Guid AddList(string title, string description, int templateId)
        {
            ListCreationInformation createInfo=new ListCreationInformation();
            createInfo.Description = description;
            createInfo.Title = title;
            createInfo.TemplateType = templateId;
            var list=_web.Lists.Add(createInfo);
            _context.Load(list);
            _context.ExecuteQuery();
            return list.Id;
        }