Udostępnij za pośrednictwem


UrlHelper.GetVirtualPathData(String, RouteValueDictionary) Metoda

Definicja

Pobiera element VirtualPathData dla określonej i routeName trasy values.

protected:
 virtual Microsoft::AspNetCore::Routing::VirtualPathData ^ GetVirtualPathData(System::String ^ routeName, Microsoft::AspNetCore::Routing::RouteValueDictionary ^ values);
protected virtual Microsoft.AspNetCore.Routing.VirtualPathData GetVirtualPathData (string routeName, Microsoft.AspNetCore.Routing.RouteValueDictionary values);
protected virtual Microsoft.AspNetCore.Routing.VirtualPathData? GetVirtualPathData (string? routeName, Microsoft.AspNetCore.Routing.RouteValueDictionary values);
abstract member GetVirtualPathData : string * Microsoft.AspNetCore.Routing.RouteValueDictionary -> Microsoft.AspNetCore.Routing.VirtualPathData
override this.GetVirtualPathData : string * Microsoft.AspNetCore.Routing.RouteValueDictionary -> Microsoft.AspNetCore.Routing.VirtualPathData
Protected Overridable Function GetVirtualPathData (routeName As String, values As RouteValueDictionary) As VirtualPathData

Parametry

routeName
String

Nazwa trasy używanej do wygenerowania elementu VirtualPathData.

values
RouteValueDictionary

Element RouteValueDictionary. Te Router wartości są używane w połączeniu z elementem AmbientValues, aby wygenerować adres URL.

Zwraca

Element VirtualPathData.

Dotyczy