IPageUrlRetrieverRetrieve Method (String, Boolean) |
Retrieves URL for a page based on given properties.
Namespace: Kentico.Content.Web.MvcAssembly: Kentico.Content.Web.Mvc (in Kentico.Content.Web.Mvc.dll) Version: 13.0.131
Syntax PageUrl Retrieve(
string nodeAliasPath,
bool keepCurrentCulture = true
)
Parameters
- nodeAliasPath
- Type: SystemString
Node alias path of the page specifying the location in the content tree. - keepCurrentCulture (Optional)
- Type: SystemBoolean
Indicates if the context of current culture should be preserved.
Return Value
Type:
PageUrlExceptions Exception | Condition |
---|
InvalidOperationException | Throws when the page is not retrieved based on given path. |
See Also