RoutingEndpointConventionBuilderExtensions Class
Definition
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.
Extension methods for adding routing metadata to endpoint instances using IEndpointConventionBuilder.
public ref class RoutingEndpointConventionBuilderExtensions abstract sealed
public static class RoutingEndpointConventionBuilderExtensions
type RoutingEndpointConventionBuilderExtensions = class
Public Module RoutingEndpointConventionBuilderExtensions
- Inheritance
-
RoutingEndpointConventionBuilderExtensions
Methods
DisableAntiforgery<TBuilder>(TBuilder) |
Disables anti-forgery token validation for all endpoints produced on the target IEndpointConventionBuilder. |
RequireHost<TBuilder>(TBuilder, String[]) |
Requires that endpoints match one of the specified hosts during routing. |
WithDisplayName<TBuilder>(TBuilder, Func<EndpointBuilder,String>) |
Sets the DisplayName using the provided |
WithDisplayName<TBuilder>(TBuilder, String) |
Sets the DisplayName to the provided |
WithFormMappingOptions<TBuilder>(TBuilder, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>) |
Configures FormMappingOptionsMetadata for all endpoints produced on the target IEndpointConventionBuilder. |
WithFormOptions<TBuilder>(TBuilder, Nullable<Boolean>, Nullable<Int32>, Nullable<Int64>, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>, Nullable<Int64>) |
Configures Microsoft.AspNetCore.Http.Metadata.FormOptionsMetadata for all endpoints produced on the target IEndpointConventionBuilder. |
WithGroupName<TBuilder>(TBuilder, String) |
Sets the EndpointGroupNameAttribute for all endpoints produced
on the target IEndpointConventionBuilder given the |
WithMetadata<TBuilder>(TBuilder, Object[]) |
Adds the provided metadata |
WithName<TBuilder>(TBuilder, String) |
Adds the IEndpointNameMetadata to the Metadata collection for all endpoints produced
on the target IEndpointConventionBuilder given the |
WithOrder<TBuilder>(TBuilder, Int32) |
Sets the Order to the provided |
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for