RouteTokenTransformerConvention Klasa

Definicja

Element IActionModelConvention , który ustawia zamianę tokenu routingu atrybutów, aby użyć określonego IOutboundParameterTransformer w elemencie ActionModel. Ta konwencja nie wpływa na trasy stron 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
Dziedziczenie
RouteTokenTransformerConvention
Implementuje

Konstruktory

RouteTokenTransformerConvention(IOutboundParameterTransformer)

Tworzy nowe wystąpienie elementu RouteTokenTransformerConvention o określonym obiekcie IOutboundParameterTransformer.

Metody

Apply(ActionModel)

Wywoływane w celu zastosowania konwencji do .ActionModel

ShouldApply(ActionModel)

Wywoływane w celu określenia, czy akcja ma być stosowana.

Dotyczy