/// <summary> /// Checks if a list exists in a site using its "internal name" and creates it if it doesn't exist. /// </summary> /// <param name="site">The site to check.</param> /// <param name="listDetail">The details of the list.</param> /// <param name="isNewList">A boolean that is set to true, if a new list is created; otherwise, it is set to false.</param> /// <returns>A SPList object that references an existing or newly created list.</returns> public static SPList EnsureList(this SPWeb site, ListDetails listDetail, ref bool isNewList) { return(EnsureList(site, listDetail.UrlName, listDetail.TemplateType, listDetail.Title, listDetail.Description, ref isNewList)); }
public ReadOnlyListDetails(string urlName, SPListTemplateType templateType, string title, string description, bool enforceUniqueValues) { _listDetails = new ListDetails(urlName, templateType, title, description, enforceUniqueValues); }