Class EndpointDataSourceExtensions
Extensions methods for EndpointDataSource.
Inheritance
System.Object
Namespace: Umbraco.Cms.Web.Common.Extensions
Assembly: Umbraco.Web.Common.dll
Syntax
public static class EndpointDataSourceExtensions
Methods
View SourceGetEndpointByPath(EndpointDataSource, LinkParser, PathString, out RouteValueDictionary)
Gets an endpoint that matches the specified path.
Declaration
public static Endpoint GetEndpointByPath(this EndpointDataSource endpointDatasource, LinkParser linkParser, PathString path, out RouteValueDictionary routeValues)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.AspNetCore.Routing.EndpointDataSource | endpointDatasource | The end point data source. |
Microsoft.AspNetCore.Routing.LinkParser | linkParser | The link parsers using to parse the path. |
Microsoft.AspNetCore.Http.PathString | path | The path to be parsed. |
Microsoft.AspNetCore.Routing.RouteValueDictionary | routeValues | The mathcing route values for the mathcing endpoint. |
Returns
Type | Description |
---|---|
Microsoft.AspNetCore.Http.Endpoint | The endpoint or null if not found. |