Class UrlHelperExtensions
Provides methods to build URLs to Kentico content.
public static class UrlHelperExtensions
- Inheritance
-
objectUrlHelperExtensions
Methods
Kentico(IUrlHelper)
Returns an object that provides methods to build URLs to Kentico content.
public static UrlHelperExtensionPoint Kentico(this IUrlHelper target)
Parameters
targetIUrlHelperAn instance of the Microsoft.AspNetCore.Mvc.IUrlHelper class.
Returns
- UrlHelperExtensionPoint
An object that provides methods to build URLs to Kentico content.
Remarks
The returned object builds URLs based on the context of the current request.
RouteUrl(UrlHelperExtensionPoint, string, string, string, object)
Returns a string that contains a URL.
public static string RouteUrl(this UrlHelperExtensionPoint instance, string routeName, string actionName, string controllerName, object routeValues)
Parameters
instanceUrlHelperExtensionPointThe object that provides methods to build URLs to Kentico content.
routeNamestringThe route name.
actionNamestringThe action name.
controllerNamestringThe controller name.
routeValuesobjectThe route values.
Returns
- string
A string that contains a URL.