Dela via


IEndpointParameterMetadataProvider.PopulateMetadata Method

Definition

Populates metadata for the related Endpoint and ParameterInfo.

public static abstract void PopulateMetadata (System.Reflection.ParameterInfo parameter, Microsoft.AspNetCore.Builder.EndpointBuilder builder);
static member PopulateMetadata : System.Reflection.ParameterInfo * Microsoft.AspNetCore.Builder.EndpointBuilder -> unit
Public Shared Sub PopulateMetadata (parameter As ParameterInfo, builder As EndpointBuilder)

Parameters

parameter
ParameterInfo

The ParameterInfo of the route handler delegate or MVC Action of the endpoint being created.

builder
EndpointBuilder

The EndpointBuilder used to construct the endpoint for the given parameter.

Remarks

This method is called by RequestDelegateFactory when creating a RequestDelegate and by MVC when creating endpoints for controller actions. This is called for each parameter of the route handler or action with a declared type implementing this interface. Add or remove objects on the Metadata property of the builder to modify the Metadata being built.

Applies to