Search Results for

    Show / Hide Table of Contents
    View Source

    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 Source

    GetControllerActionDescriptor(Endpoint)

    Gets the controller action descriptor from the endpoint.

    Declaration
    public static ControllerActionDescriptor GetControllerActionDescriptor(this Endpoint endpoint)
    Parameters
    Type Name Description
    Microsoft.AspNetCore.Http.Endpoint endpoint

    The endpoint.

    Returns
    Type Description
    Microsoft.AspNetCore.Mvc.Controllers.ControllerActionDescriptor

    The controller action descriptor or null if not found.

    View Source

    GetRouteName(Endpoint)

    Gets the route name from the endpoint metadata.

    Declaration
    public static string GetRouteName(this Endpoint endpoint)
    Parameters
    Type Name Description
    Microsoft.AspNetCore.Http.Endpoint endpoint

    The endpoint.

    Returns
    Type Description
    System.String

    The route name or null if not found.

    View Source

    GetRouteNameMetadata(Endpoint)

    Gets the route name metadata from the endpoint.

    Declaration
    public static RouteNameMetadata GetRouteNameMetadata(this Endpoint endpoint)
    Parameters
    Type Name Description
    Microsoft.AspNetCore.Http.Endpoint endpoint

    The endpoint.

    Returns
    Type Description
    Microsoft.AspNetCore.Routing.RouteNameMetadata

    The route name metadata or null if not found.

    • Improve this Doc
    • View Source
    In This Article
    • Methods
      • GetControllerActionDescriptor(Endpoint)
      • GetRouteName(Endpoint)
      • GetRouteNameMetadata(Endpoint)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX