Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

EndpointRouteBuilderExtensions Class

Definition

Namespace:
Microsoft.AspNetCore.Builder
Assembly:
Microsoft.AspNetCore.Routing.dll
Package:
Microsoft.AspNetCore.App.Ref v10.0.0
Package:
Microsoft.AspNetCore.App.Ref v11.0.0-preview.4.26230.115
Package:
Microsoft.AspNetCore.App.Ref v3.0.1
Package:
Microsoft.AspNetCore.App.Ref v3.1.10
Package:
Microsoft.AspNetCore.App.Ref v5.0.0
Package:
Microsoft.AspNetCore.App.Ref v6.0.36
Package:
Microsoft.AspNetCore.App.Ref v7.0.5
Package:
Microsoft.AspNetCore.App.Ref v8.0.19
Package:
Microsoft.AspNetCore.App.Ref v9.0.8
Source:
EndpointRouteBuilderExtensions.cs

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Provides extension methods for IEndpointRouteBuilder to add endpoints.

public ref class EndpointRouteBuilderExtensions abstract sealed
public static class EndpointRouteBuilderExtensions
type EndpointRouteBuilderExtensions = class
Public Module EndpointRouteBuilderExtensions
Inheritance
EndpointRouteBuilderExtensions

Methods

Name Description
Map(IEndpointRouteBuilder, RoutePattern, Delegate)

Adds a RouteEndpoint to the IEndpointRouteBuilder that matches HTTP requests for the specified pattern.

Map(IEndpointRouteBuilder, RoutePattern, RequestDelegate)

Adds a RouteEndpoint to the IEndpointRouteBuilder that matches HTTP requests for the specified pattern.

Map(IEndpointRouteBuilder, String, Delegate)

Adds a RouteEndpoint to the IEndpointRouteBuilder that matches HTTP requests for the specified pattern.

Map(IEndpointRouteBuilder, String, RequestDelegate)

Adds a RouteEndpoint to the IEndpointRouteBuilder that matches HTTP requests for the specified pattern.

MapDelete(IEndpointRouteBuilder, String, Delegate)

Adds a RouteEndpoint to the IEndpointRouteBuilder that matches HTTP DELETE requests for the specified pattern.

MapDelete(IEndpointRouteBuilder, String, RequestDelegate)

Adds a RouteEndpoint to the IEndpointRouteBuilder that matches HTTP DELETE requests for the specified pattern.

MapFallback(IEndpointRouteBuilder, Delegate)

Adds a specialized RouteEndpoint to the IEndpointRouteBuilder that will match requests for non-file-names with the lowest possible priority.

MapFallback(IEndpointRouteBuilder, String, Delegate)

Adds a specialized RouteEndpoint to the IEndpointRouteBuilder that will match the provided pattern with the lowest possible priority.

MapGet(IEndpointRouteBuilder, String, Delegate)

Adds a RouteEndpoint to the IEndpointRouteBuilder that matches HTTP GET requests for the specified pattern.

MapGet(IEndpointRouteBuilder, String, RequestDelegate)

Adds a RouteEndpoint to the IEndpointRouteBuilder that matches HTTP GET requests for the specified pattern.

MapGroup(IEndpointRouteBuilder, RoutePattern)

Creates a RouteGroupBuilder for defining endpoints all prefixed with the specified prefix.

MapGroup(IEndpointRouteBuilder, String)

Creates a RouteGroupBuilder for defining endpoints all prefixed with the specified prefix.

MapMethods(IEndpointRouteBuilder, String, IEnumerable<String>, Delegate)

Adds a RouteEndpoint to the IEndpointRouteBuilder that matches HTTP requests for the specified HTTP methods and pattern.

MapMethods(IEndpointRouteBuilder, String, IEnumerable<String>, RequestDelegate)

Adds a RouteEndpoint to the IEndpointRouteBuilder that matches HTTP requests for the specified HTTP methods and pattern.

MapPatch(IEndpointRouteBuilder, String, Delegate)

Adds a RouteEndpoint to the IEndpointRouteBuilder that matches HTTP PATCH requests for the specified pattern.

MapPatch(IEndpointRouteBuilder, String, RequestDelegate)

Adds a RouteEndpoint to the IEndpointRouteBuilder that matches HTTP PATCH requests for the specified pattern.

MapPost(IEndpointRouteBuilder, String, Delegate)

Adds a RouteEndpoint to the IEndpointRouteBuilder that matches HTTP POST requests for the specified pattern.

MapPost(IEndpointRouteBuilder, String, RequestDelegate)

Adds a RouteEndpoint to the IEndpointRouteBuilder that matches HTTP POST requests for the specified pattern.

MapPut(IEndpointRouteBuilder, String, Delegate)

Adds a RouteEndpoint to the IEndpointRouteBuilder that matches HTTP PUT requests for the specified pattern.

MapPut(IEndpointRouteBuilder, String, RequestDelegate)

Adds a RouteEndpoint to the IEndpointRouteBuilder that matches HTTP PUT requests for the specified pattern.

Applies to


Feedback

Was this page helpful?