C# Класс SenseNet.Portal.UI.Bundling.Bundle

Class for bunding multiple files into one.
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
AddPath ( string path ) : void

Adds a path to the bundle with the order of 0.

AddPath ( string path, int order ) : void

Adds a path to the bundle with the specified order.

Bundle ( ) : System

Creates a new instance of the Bundle class.

Close ( ) : void

Closes the current bundle. It's not possible to reopen.

Combine ( ) : string

Combines the files in this bundle into one.

Защищенные методы

Метод Описание
GetTextFromPath ( string path ) : string

Gets the text content from a given path and processes it. Override this method if you want to implement custom logic when each file is loaded.

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

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

Adds a path to the bundle with the order of 0.
public AddPath ( string path ) : void
path string The path to add to the bundle.
Результат void

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

Adds a path to the bundle with the specified order.
public AddPath ( string path, int order ) : void
path string The path to add to the bundle.
order int The specified order.
Результат void

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

Creates a new instance of the Bundle class.
public Bundle ( ) : System
Результат System

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

Closes the current bundle. It's not possible to reopen.
public Close ( ) : void
Результат void

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

Combines the files in this bundle into one.
public Combine ( ) : string
Результат string

GetTextFromPath() защищенный Метод

Gets the text content from a given path and processes it. Override this method if you want to implement custom logic when each file is loaded.
protected GetTextFromPath ( string path ) : string
path string The path from which to the content should be retrieved.
Результат string