GetUrl.md
July 10, 2025 ยท View on GitHub
DefaultDocumentation.Api
DefaultDocumentation.IPageContextExtensions
IPageContextExtensions.GetUrl Method
| 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. |
IPageContextExtensions.GetUrl(this IPageContext, DocItem) Method
Gets the url of the given DocItem in a specific page.
public static string? GetUrl(this DefaultDocumentation.IPageContext context, DefaultDocumentation.Models.DocItem item);
Parameters
context IPageContext
The IPageContext of the current documentation file.
item DocItem
The DocItem for which to get the url.
Returns
System.String
The url of the given DocItem.
IPageContextExtensions.GetUrl(this IPageContext, string) Method
Gets the url of the given id in a specific page.
public static string? GetUrl(this DefaultDocumentation.IPageContext context, string id);
Parameters
context IPageContext
The IPageContext of the current documentation file.
The id for which to get the url.
Returns
System.String
The url of the given DocItem.