Skip to content

Latest commit

 

History

History
63 lines (39 loc) · 3.51 KB

File metadata and controls

63 lines (39 loc) · 3.51 KB

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.

id System.String

The id for which to get the url.

Returns

System.String
The url of the given DocItem.