C# Class Sakura.AspNetCore.Mvc.Generators.FormattedStringContentGenerator

Generate IHtmlContent from a formatted string. The page number will be used as the format argument {0}.
Inheritance: StringContentGenerator
Afficher le fichier Open project: sgjsakura/AspNetCore

Private Properties

Свойство Type Description

Méthodes publiques

Méthode Description
FormattedStringContentGenerator ( [ format, bool encodeText, IFormatProvider formatProvider = null ) : System

Initialize a new generator with specified parameters.

Méthodes protégées

Méthode Description
GenerateContentString ( PagerItemGenerationContext context ) : string

When be derived, generate the content string.

Method Details

FormattedStringContentGenerator() public méthode

Initialize a new generator with specified parameters.
is null.
public FormattedStringContentGenerator ( [ format, bool encodeText, IFormatProvider formatProvider = null ) : System
format [ The format string used to be generate the content string.
encodeText bool Whether the format result should be HTML encoded before be written to page.
formatProvider IFormatProvider /// The format provider used to generate the content string. If this parameter is null, /// will be used. ///
Résultat System

GenerateContentString() protected méthode

When be derived, generate the content string.
protected GenerateContentString ( PagerItemGenerationContext context ) : string
context PagerItemGenerationContext The generation context.
Résultat string