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

Generate the query parameter value using a custom method.
Inheritance: QueryValueLinkGenerator
显示文件 Open project: sgjsakura/AspNetCore

Private Properties

Property Type Description

Public Methods

Method Description
CustomQueryValueLinkGenerator ( [ queryParameterName, string>.[ queryValueGenerator ) : System

Initialize a new instance of the generator.

GenerateQueryParameterValue ( PagerItemGenerationContext context ) : string

When derived, generate the query parameter value for the specified PagerItem.

Method Details

CustomQueryValueLinkGenerator() public method

Initialize a new instance of the generator.
/// The or /// is null. ///
public CustomQueryValueLinkGenerator ( [ queryParameterName, string>.[ queryValueGenerator ) : System
queryParameterName [ The query parameter name when generating the link URL.
queryValueGenerator string>.[ The query parameter value generating method delegate.
return System

GenerateQueryParameterValue() public method

When derived, generate the query parameter value for the specified PagerItem.
public GenerateQueryParameterValue ( PagerItemGenerationContext context ) : string
context PagerItemGenerationContext The generation context.
return string