LinkGenerator Klasa

Definicja

Definiuje kontrakt do generowania bezwzględnych i powiązanych identyfikatorów URI na podstawie routingu punktu końcowego.

public ref class LinkGenerator abstract
public abstract class LinkGenerator
type LinkGenerator = class
Public MustInherit Class LinkGenerator
Dziedziczenie
LinkGenerator

Uwagi

Generowanie identyfikatorów URI w routingu punktu końcowego odbywa się w dwóch fazach. Najpierw adres jest powiązany z listą punktów końcowych pasujących do adresu. Po drugie, każdy punkt końcowy RoutePattern jest oceniany do momentu znalezienia wzorca trasy zgodnego z podanymi wartościami. Wynikowe dane wyjściowe są łączone z innymi częściami identyfikatora URI dostarczonymi do generatora linków i zwracanymi.

Metody dostarczane przez LinkGenerator typ są ogólną infrastrukturą i obsługują standardową funkcjonalność generatora linków dla dowolnego typu adresu. Najbardziej wygodnym sposobem użycia LinkGenerator jest użycie metod rozszerzeń, które wykonują operacje dla określonego typu adresu.

Konstruktory

LinkGenerator()

Definiuje kontrakt do generowania bezwzględnych i powiązanych identyfikatorów URI na podstawie routingu punktu końcowego.

Metody

GetPathByAddress<TAddress>(HttpContext, TAddress, RouteValueDictionary, RouteValueDictionary, Nullable<PathString>, FragmentString, LinkOptions)

Generuje identyfikator URI ze ścieżką bezwzględną na podstawie podanych wartości i HttpContext.

GetPathByAddress<TAddress>(TAddress, RouteValueDictionary, PathString, FragmentString, LinkOptions)

Generuje identyfikator URI ze ścieżką bezwzględną na podstawie podanych wartości.

GetUriByAddress<TAddress>(HttpContext, TAddress, RouteValueDictionary, RouteValueDictionary, String, Nullable<HostString>, Nullable<PathString>, FragmentString, LinkOptions)

Generuje bezwzględny identyfikator URI na podstawie podanych wartości i HttpContext.

GetUriByAddress<TAddress>(TAddress, RouteValueDictionary, String, HostString, PathString, FragmentString, LinkOptions)

Generuje bezwzględny identyfikator URI na podstawie podanych wartości.

Metody rozszerzania

GetPathByAction(LinkGenerator, HttpContext, String, String, Object, Nullable<PathString>, FragmentString, LinkOptions)

Generuje identyfikator URI ze ścieżką bezwzględną na podstawie podanych wartości.

GetPathByAction(LinkGenerator, String, String, Object, PathString, FragmentString, LinkOptions)

Generuje identyfikator URI ze ścieżką bezwzględną na podstawie podanych wartości.

GetUriByAction(LinkGenerator, HttpContext, String, String, Object, String, Nullable<HostString>, Nullable<PathString>, FragmentString, LinkOptions)

Generuje bezwzględny identyfikator URI na podstawie podanych wartości.

GetUriByAction(LinkGenerator, String, String, Object, String, HostString, PathString, FragmentString, LinkOptions)

Generuje bezwzględny identyfikator URI na podstawie podanych wartości.

GetPathByName(LinkGenerator, HttpContext, String, RouteValueDictionary, Nullable<PathString>, FragmentString, LinkOptions)

Generuje identyfikator URI ze ścieżką bezwzględną na podstawie podanych wartości.

GetPathByName(LinkGenerator, HttpContext, String, Object, Nullable<PathString>, FragmentString, LinkOptions)

Generuje identyfikator URI ze ścieżką bezwzględną na podstawie podanych wartości.

GetPathByName(LinkGenerator, String, RouteValueDictionary, PathString, FragmentString, LinkOptions)

Generuje identyfikator URI ze ścieżką bezwzględną na podstawie podanych wartości.

GetPathByName(LinkGenerator, String, Object, PathString, FragmentString, LinkOptions)

Generuje identyfikator URI ze ścieżką bezwzględną na podstawie podanych wartości.

GetUriByName(LinkGenerator, HttpContext, String, RouteValueDictionary, String, Nullable<HostString>, Nullable<PathString>, FragmentString, LinkOptions)

Generuje bezwzględny identyfikator URI na podstawie podanych wartości.

GetUriByName(LinkGenerator, HttpContext, String, Object, String, Nullable<HostString>, Nullable<PathString>, FragmentString, LinkOptions)

Generuje bezwzględny identyfikator URI na podstawie podanych wartości.

GetUriByName(LinkGenerator, String, RouteValueDictionary, String, HostString, PathString, FragmentString, LinkOptions)

Generuje bezwzględny identyfikator URI na podstawie podanych wartości.

GetUriByName(LinkGenerator, String, Object, String, HostString, PathString, FragmentString, LinkOptions)

Generuje bezwzględny identyfikator URI na podstawie podanych wartości.

GetPathByRouteValues(LinkGenerator, HttpContext, String, RouteValueDictionary, Nullable<PathString>, FragmentString, LinkOptions)

Generuje identyfikator URI ze ścieżką bezwzględną na podstawie podanych wartości.

GetPathByRouteValues(LinkGenerator, HttpContext, String, Object, Nullable<PathString>, FragmentString, LinkOptions)

Generuje identyfikator URI ze ścieżką bezwzględną na podstawie podanych wartości.

GetPathByRouteValues(LinkGenerator, String, RouteValueDictionary, PathString, FragmentString, LinkOptions)

Generuje identyfikator URI ze ścieżką bezwzględną na podstawie podanych wartości.

GetPathByRouteValues(LinkGenerator, String, Object, PathString, FragmentString, LinkOptions)

Generuje identyfikator URI ze ścieżką bezwzględną na podstawie podanych wartości.

GetUriByRouteValues(LinkGenerator, HttpContext, String, RouteValueDictionary, String, Nullable<HostString>, Nullable<PathString>, FragmentString, LinkOptions)

Generuje bezwzględny identyfikator URI na podstawie podanych wartości.

GetUriByRouteValues(LinkGenerator, HttpContext, String, Object, String, Nullable<HostString>, Nullable<PathString>, FragmentString, LinkOptions)

Generuje bezwzględny identyfikator URI na podstawie podanych wartości.

GetUriByRouteValues(LinkGenerator, String, RouteValueDictionary, String, HostString, PathString, FragmentString, LinkOptions)

Generuje bezwzględny identyfikator URI na podstawie podanych wartości.

GetUriByRouteValues(LinkGenerator, String, Object, String, HostString, PathString, FragmentString, LinkOptions)

Generuje bezwzględny identyfikator URI na podstawie podanych wartości.

GetPathByPage(LinkGenerator, HttpContext, String, String, Object, Nullable<PathString>, FragmentString, LinkOptions)

Generuje identyfikator URI ze ścieżką bezwzględną na podstawie podanych wartości.

GetPathByPage(LinkGenerator, String, String, Object, PathString, FragmentString, LinkOptions)

Generuje identyfikator URI ze ścieżką bezwzględną na podstawie podanych wartości.

GetUriByPage(LinkGenerator, HttpContext, String, String, Object, String, Nullable<HostString>, Nullable<PathString>, FragmentString, LinkOptions)

Generuje bezwzględny identyfikator URI na podstawie podanych wartości.

GetUriByPage(LinkGenerator, String, String, Object, String, HostString, PathString, FragmentString, LinkOptions)

Generuje bezwzględny identyfikator URI na podstawie podanych wartości.

Dotyczy