• Share
    • Twitter
    • LinkedIn
    • Facebook
    • Email
  • Feedback
  • Improve this Doc

Class UrlHelperExtensions

Inheritance
System.Object
UrlHelperExtensions
Namespace: DotNetNuke.Web.Api
Assembly: DotNetNuke.Web.dll
Syntax
public static class UrlHelperExtensions : object

Methods

| Improve this Doc View Source

DnnLink(UrlHelper, String, String, Object, PortalAliasInfo)

Generate WebAPI Links compatible with DNN Services Framework.

Declaration
public static string DnnLink(this UrlHelper urlHelper, string moduleFolderName, string routeName, object routeValues, PortalAliasInfo portalAliasInfo)
Parameters
Type Name Description
UrlHelper urlHelper

The UrlHelper.

System.String moduleFolderName

ModuleFolderName for the route.

System.String routeName

RouteName for the route.

System.Object routeValues

Values to be passed to the route.

PortalAliasInfo portalAliasInfo

The PortalAlias to use in the Url.

Returns
Type Description
System.String

a url.

| Improve this Doc View Source

DnnLink(UrlHelper, String, String, Object)

Generate WebAPI Links compatible with DNN Services Framework.

Declaration
public static string DnnLink(this UrlHelper urlHelper, string moduleFolderName, string routeName, object routeValues)
Parameters
Type Name Description
UrlHelper urlHelper

The UrlHelper.

System.String moduleFolderName

ModuleFolderName for the route.

System.String routeName

RouteName for the route.

System.Object routeValues

Values to be passed to the route.

Returns
Type Description
System.String

a url.

  • View Source
Back to top by the community, for the community... #DNNCMS