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

Generate link url string from a formatted string. The page number will be used as the format argument {0}. ///
Inheritance: IPagerItemLinkGenerator
Exibir arquivo Open project: sgjsakura/AspNetCore

Private Properties

Property Type Description

Public Methods

Method Description
FormattedLinkGenerator ( [ format, IFormatProvider formatProvider = null ) : System

Initialize a new generator with specified parameters.

GenerateLink ( PagerItemGenerationContext context ) : string

Generate the link url for the specified PagerItem.

Method Details

FormattedLinkGenerator() public method

Initialize a new generator with specified parameters.
is null.
public FormattedLinkGenerator ( [ format, IFormatProvider formatProvider = null ) : System
format [ The format string used to be generate the link.
formatProvider IFormatProvider /// The format provider used to generate the link. If this parameter is null, /// will be used. ///
return System

GenerateLink() public method

Generate the link url for the specified PagerItem.
public GenerateLink ( PagerItemGenerationContext context ) : string
context PagerItemGenerationContext The generation context.
return string