C# Класс Simplify.Web.Modules.Data.DataCollector

Provides master page data collector
Наследование: IDataCollector
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
Add ( ITemplate template ) : void

Set template main content variable value with data from template (all occurrences will be replaced)

Add ( string value ) : void

Set template main content variable value (all occurrences will be replaced)

Add ( string variableName, ITemplate template ) : void

Set template variable value with data from template (all occurrences will be replaced)

Add ( string variableName, string value ) : void

Set template variable value (all occurrences will be replaced)

AddSt ( string stringTableKey ) : void

Set template main content variable value from StringTable (all occurrences will be replaced)

AddSt ( string variableName, string stringTableKey ) : void

Set template variable value from StringTable (all occurrences will be replaced)

AddTitle ( string value ) : void

Set template title variable value (all occurrences will be replaced)

AddTitleSt ( string stringTableKey ) : void

Set template title variable value from StringTable (all occurrences will be replaced)

DataCollector ( string mainContentVariableName, string titleVariableName, IStringTable stringTable ) : System.Collections.Generic

Initializes a new instance of the DataCollector class.

IsDataExist ( string variableName ) : bool

Checking if some variable data is already exist in a data collector

this ( string key ) : string

List of data collector items

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

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

Set template main content variable value with data from template (all occurrences will be replaced)
public Add ( ITemplate template ) : void
template ITemplate The template.
Результат void

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

Set template main content variable value (all occurrences will be replaced)
public Add ( string value ) : void
value string Value to set
Результат void

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

Set template variable value with data from template (all occurrences will be replaced)
public Add ( string variableName, ITemplate template ) : void
variableName string Variable name in master template file
template ITemplate The template.
Результат void

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

Set template variable value (all occurrences will be replaced)
public Add ( string variableName, string value ) : void
variableName string Variable name in master template file
value string Value to set
Результат void

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

Set template main content variable value from StringTable (all occurrences will be replaced)
public AddSt ( string stringTableKey ) : void
stringTableKey string StringTable key
Результат void

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

Set template variable value from StringTable (all occurrences will be replaced)
public AddSt ( string variableName, string stringTableKey ) : void
variableName string Variable name in master template file
stringTableKey string StringTable key
Результат void

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

Set template title variable value (all occurrences will be replaced)
public AddTitle ( string value ) : void
value string Value to set
Результат void

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

Set template title variable value from StringTable (all occurrences will be replaced)
public AddTitleSt ( string stringTableKey ) : void
stringTableKey string StringTable key
Результат void

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

Initializes a new instance of the DataCollector class.
public DataCollector ( string mainContentVariableName, string titleVariableName, IStringTable stringTable ) : System.Collections.Generic
mainContentVariableName string Name of the main content variable.
titleVariableName string Name of the title variable.
stringTable IStringTable The string table.
Результат System.Collections.Generic

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

Checking if some variable data is already exist in a data collector
public IsDataExist ( string variableName ) : bool
variableName string Variable name
Результат bool

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

List of data collector items
public this ( string key ) : string
key string Item name
Результат string