Overloads | |
---|---|
GetUrl(this IPageContext, DocItem) | Gets the url of the given DocItem in a specific page. |
GetUrl(this IPageContext, string) | Gets the url of the given id in a specific page. |
Gets the url of the given DocItem in a specific page.
public static string? GetUrl(this DefaultDocumentation.IPageContext context, DefaultDocumentation.Models.DocItem item);
context
IPageContext
The IPageContext of the current documentation file.
item
DocItem
The DocItem for which to get the url.
System.String
The url of the given DocItem.
Gets the url of the given id in a specific page.
public static string? GetUrl(this DefaultDocumentation.IPageContext context, string id);
context
IPageContext
The IPageContext of the current documentation file.
The id for which to get the url.
System.String
The url of the given DocItem.