C# Class GSoft.Dynamite.Lists.ListHelper

Helper class to manage lists.
Inheritance: IListHelper
Afficher le fichier Open project: GSoft-SharePoint/Dynamite-2010

Méthodes publiques

Méthode Description
AddContentType ( SPList list, SPContentType contentType ) : void

Adds the content type.

AddContentType ( SPList list, SPContentTypeId contentTypeId ) : void

Adds the content type id.

GetListByRootFolderUrl ( SPWeb web, string listRootFolderUrl ) : SPList

Get the list bu root folder url

ListHelper ( ContentTypeBuilder contentTypeBuilder, IResourceLocator resourceLocator ) : System

Creates a list helper

Private Methods

Méthode Description
EnsureList ( SPWeb web, string name, string description, SPListTemplate template ) : SPList
EnsureList ( SPWeb web, string name, string description, SPListTemplateType templateType ) : SPList
GetListTemplate ( SPWeb web, string templateName ) : SPListTemplate
TryGetList ( SPWeb web, string titleOrUrlOrResourceString ) : SPList

Method Details

AddContentType() public méthode

Adds the content type.
Any null parameter.
public AddContentType ( SPList list, SPContentType contentType ) : void
list SPList The list.
contentType SPContentType Type of the content.
Résultat void

AddContentType() public méthode

Adds the content type id.
Any null parameters. contentTypeId;Content Type not available in the lists parent web.
public AddContentType ( SPList list, SPContentTypeId contentTypeId ) : void
list SPList The list.
contentTypeId SPContentTypeId The content type id.
Résultat void

GetListByRootFolderUrl() public méthode

Get the list bu root folder url
public GetListByRootFolderUrl ( SPWeb web, string listRootFolderUrl ) : SPList
web SPWeb /// The web. ///
listRootFolderUrl string /// The list Root Folder Url. ///
Résultat SPList

ListHelper() public méthode

Creates a list helper
public ListHelper ( ContentTypeBuilder contentTypeBuilder, IResourceLocator resourceLocator ) : System
contentTypeBuilder ContentTypeBuilder A content type helper
resourceLocator IResourceLocator
Résultat System