Class EndpointExtensions
Extensions methods for Endpoint.
Inheritance
System.Object
Namespace: Umbraco.Cms.Web.Common.Extensions
Assembly: Umbraco.Web.Common.dll
Syntax
public static class EndpointExtensions
Methods
View SourceGetControllerActionDescriptor(Endpoint)
Gets the controller action descriptor from the endpoint.
Declaration
public static ControllerActionDescriptor GetControllerActionDescriptor(this Endpoint endpoint)
Parameters
Type | Name | Description |
---|---|---|
Microsoft. |
endpoint | The endpoint. |
Returns
Type | Description |
---|---|
Microsoft. |
The controller action descriptor or null if not found. |
GetRouteName(Endpoint)
Gets the route name from the endpoint metadata.
Declaration
public static string GetRouteName(this Endpoint endpoint)
Parameters
Type | Name | Description |
---|---|---|
Microsoft. |
endpoint | The endpoint. |
Returns
Type | Description |
---|---|
System. |
The route name or null if not found. |
GetRouteNameMetadata(Endpoint)
Gets the route name metadata from the endpoint.
Declaration
public static RouteNameMetadata GetRouteNameMetadata(this Endpoint endpoint)
Parameters
Type | Name | Description |
---|---|---|
Microsoft. |
endpoint | The endpoint. |
Returns
Type | Description |
---|---|
Microsoft. |
The route name metadata or null if not found. |