C# Class SenseNet.Portal.UI.Bundling.Bundle

Class for bunding multiple files into one.
Afficher le fichier Open project: maxpavlov/FlexNet Class Usage Examples

Méthodes publiques

Méthode Description
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.

Méthodes protégées

Méthode Description
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.

Method Details

AddPath() public méthode

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.
Résultat void

AddPath() public méthode

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.
Résultat void

Bundle() public méthode

Creates a new instance of the Bundle class.
public Bundle ( ) : System
Résultat System

Close() public méthode

Closes the current bundle. It's not possible to reopen.
public Close ( ) : void
Résultat void

Combine() public méthode

Combines the files in this bundle into one.
public Combine ( ) : string
Résultat string

GetTextFromPath() protected méthode

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.
Résultat string