Interface IPageUrlGenerator
Interface provides contract for URL generation within the Admin UI.
[Obsolete("Use IPageLinkGenerator instead.")]
public interface IPageUrlGenerator
- Extension Methods
Methods
GenerateUrl(Type, params string[])
Generates a rooted URL to an administration page.
string GenerateUrl(Type pageType, params string[] parameters)
Parameters
pageTypeTypePage type to generate the URL for.
parametersstring[]Parameter values to be substituted into the URL. Provide the parameters in the same order as they would appear in the URL.
Returns
- string
Generated URL.
Exceptions
- ArgumentNullException
Thrown when
pageTypeorparametersare null.- InvalidOperationException
Thrown when
parameterscontains too many or too little elements orpageTypeis not registered using the UIPageAttribute.
GenerateUrl<TPage>(params string[])
Generates a rooted URL to an administration page.
string GenerateUrl<TPage>(params string[] parameters)
Parameters
parametersstring[]Parameter values to be substituted into the URL. Provide the parameters in the same order as they would appear in the URL.
Returns
- string
Generated URL.
Type Parameters
TPagePage type to generate the URL for.
Exceptions
- ArgumentNullException
Thrown when
parametersis null.- InvalidOperationException
Thrown when
parameterscontains too many or too little elements orTPageis not registered using the UIPageAttribute.