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

Generate the query parammeter value from a formatted string. The page number will be used as the format argument {0}.
Inheritance: QueryValueLinkGenerator
Show file Open project: sgjsakura/AspNetCore

Private Properties

Property Type Description

Public Methods

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

Initialize a new instance of the generator.

GenerateQueryParameterValue ( PagerItemGenerationContext context ) : string

Generate the query parameter value for the specified PagerItem.

Method Details

FormattedQueryValueLinkGenerator() public method

Initialize a new instance of the generator.
/// The or is /// null. ///
public FormattedQueryValueLinkGenerator ( [ queryParameterName, [ format, IFormatProvider formatProvider = null ) : System
queryParameterName [ The query parameter name when generating the link URL.
format [ The format string used to be generate the content string..
formatProvider IFormatProvider /// The format provider used to generate the content string. If this parameter is null, /// will be used. ///
return System

GenerateQueryParameterValue() public method

Generate the query parameter value for the specified PagerItem.
public GenerateQueryParameterValue ( PagerItemGenerationContext context ) : string
context PagerItemGenerationContext The generation context.
return string