Class ContentFinderByIdPath
Provides an implementation of IContentFinder that handles page identifiers.
Inheritance
System.Object
Namespace: Umbraco.Web.Routing
Assembly: Umbraco.Web.dll
Syntax
public class ContentFinderByIdPath : IContentFinder
Remarks
Handles /1234
where 1234
is the identified of a document.
Constructors
View SourceContentFinderByIdPath(IWebRoutingSection, ILogger)
Declaration
public ContentFinderByIdPath(IWebRoutingSection webRoutingSection, ILogger logger)
Parameters
Type | Name | Description |
---|---|---|
IWebRoutingSection | webRoutingSection | |
ILogger | logger |
Methods
View SourceTryFindContent(PublishedRequest)
Tries to find and assign an Umbraco document to a PublishedRequest
.
Declaration
public bool TryFindContent(PublishedRequest frequest)
Parameters
Type | Name | Description |
---|---|---|
PublishedRequest | frequest | The |
Returns
Type | Description |
---|---|
System.Boolean | A value indicating whether an Umbraco document was found and assigned. |