Condividi tramite


RouteTokenTransformerConvention Classe

Definizione

Oggetto IActionModelConvention che imposta la sostituzione del token di routing degli attributi per l'uso dell'oggetto specificato IOutboundParameterTransformer in ActionModel. Questa convenzione non influisce sulle route della pagina Razor.

public ref class RouteTokenTransformerConvention : Microsoft::AspNetCore::Mvc::ApplicationModels::IActionModelConvention
public class RouteTokenTransformerConvention : Microsoft.AspNetCore.Mvc.ApplicationModels.IActionModelConvention
type RouteTokenTransformerConvention = class
    interface IActionModelConvention
Public Class RouteTokenTransformerConvention
Implements IActionModelConvention
Ereditarietà
RouteTokenTransformerConvention
Implementazioni

Costruttori

RouteTokenTransformerConvention(IOutboundParameterTransformer)

Crea una nuova istanza di RouteTokenTransformerConvention con l'oggetto specificato IOutboundParameterTransformer.

Metodi

Apply(ActionModel)

Chiamato per applicare la convenzione all'oggetto ActionModel.

ShouldApply(ActionModel)

Chiamato per determinare se deve essere applicata un'azione.

Si applica a