C# Класс ScrewTurn.Wiki.Templates

Manages content templates.
Показать файл Открыть проект

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

Метод Описание
AddTemplate ( string name, string content, IPagesStorageProviderV30 provider ) : bool

Adds a new content template.

Find ( string name ) : ContentTemplate

Finds a content template.

GetTemplates ( ) : List

Gets all the content templates.

ModifyTemplate ( ContentTemplate template, string content ) : bool

Modifies a content template.

RemoveTemplate ( ContentTemplate template ) : bool

Removes a content template.

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

AddTemplate() публичный статический Метод

Adds a new content template.
public static AddTemplate ( string name, string content, IPagesStorageProviderV30 provider ) : bool
name string The name of the template.
content string The content of the template.
provider IPagesStorageProviderV30 The target provider (null for the default provider).
Результат bool

Find() публичный статический Метод

Finds a content template.
public static Find ( string name ) : ContentTemplate
name string The name of the template to find.
Результат ContentTemplate

GetTemplates() публичный статический Метод

Gets all the content templates.
public static GetTemplates ( ) : List
Результат List

ModifyTemplate() публичный статический Метод

Modifies a content template.
public static ModifyTemplate ( ContentTemplate template, string content ) : bool
template ContentTemplate The template to modify.
content string The new content of the template.
Результат bool

RemoveTemplate() публичный статический Метод

Removes a content template.
public static RemoveTemplate ( ContentTemplate template ) : bool
template ContentTemplate The template to remove.
Результат bool