static GlymaLists() { GlymaExportsList = new ReadOnlyListDetails("GlymaExports", SPListTemplateType.GenericList, "Glyma Exports", "A list used to manage the processing of exports from Glyma and storing the results of the export operation.", false); }
/// <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, ReadOnlyListDetails listDetail, ref bool isNewList) { return EnsureList(site, listDetail.UrlName, listDetail.TemplateType, listDetail.Title, listDetail.Description, ref isNewList); }
static GlymaLists() { GlymaExportsList = new ReadOnlyListDetails("GlymaExports", SPListTemplateType.GenericList, "Glyma Exports", "A list used to manage the processing of exports from Glyma and storing the results of the export operation.", false); }
/// <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, ReadOnlyListDetails listDetail, ref bool isNewList) { return(EnsureList(site, listDetail.UrlName, listDetail.TemplateType, listDetail.Title, listDetail.Description, ref isNewList)); }