C# Класс GSoft.Dynamite.Lists.ListHelper

Helper class to manage lists.
Наследование: IListHelper
Показать файл Открыть проект

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

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

Adds the content type.
Any null parameter.
public AddContentType ( SPList list, SPContentType contentType ) : void
list SPList The list.
contentType SPContentType Type of the content.
Результат void

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

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.
Результат void

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

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. ///
Результат SPList

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

Creates a list helper
public ListHelper ( ContentTypeBuilder contentTypeBuilder, IResourceLocator resourceLocator ) : System
contentTypeBuilder ContentTypeBuilder A content type helper
resourceLocator IResourceLocator
Результат System