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

Represent as a pager item link generator that append a query parameter to the current url with custom parameter name and value generators.
Inheritance: QueryStringLinkGenerator
Afficher le fichier Open project: sgjsakura/AspNetCore

Private Properties

Свойство Type Description

Méthodes publiques

Méthode Description
CustomQueryStringLinkGenerator ( string>.[ queryNameGenerator, string>.[ queryValueGenerator ) : System

Create a new instance with specified information.

GenerateQueryParameterName ( PagerItemGenerationContext context ) : string

Generate the query parameter name for the specified PagerItem.

GenerateQueryParameterValue ( PagerItemGenerationContext context ) : string

Generate the query parameter value for the specified PagerItem.

Method Details

CustomQueryStringLinkGenerator() public méthode

Create a new instance with specified information.
/// The or /// is null. ///
public CustomQueryStringLinkGenerator ( string>.[ queryNameGenerator, string>.[ queryValueGenerator ) : System
queryNameGenerator string>.[ The query parameter name generating method delegate.
queryValueGenerator string>.[ The query parameter value generating method delegate.
Résultat System

GenerateQueryParameterName() public méthode

Generate the query parameter name for the specified PagerItem.
public GenerateQueryParameterName ( PagerItemGenerationContext context ) : string
context PagerItemGenerationContext The generation context.
Résultat string

GenerateQueryParameterValue() public méthode

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