Dela via


IParameterBindingMetadata Interface

Definition

Exposes metadata about the parameter binding details associated with a parameter in the endpoints handler.

public interface IParameterBindingMetadata
type IParameterBindingMetadata = interface
Public Interface IParameterBindingMetadata

Remarks

This metadata is injected by the RequestDelegateFactory and RequestDelegateGenerator components and is primarily intended for consumption by the EndpointMetadataApiDescriptionProvider in ApiExplorer.

Properties

HasBindAsync

true if the parameter is associated with a type that implements a BindAsync method.

HasTryParse

true is the parameter is associated with a type that implements IParsable<TSelf> or exposes a TryParse method.

IsOptional

true if the parameter is optional.

Name

The name of the parameter.

ParameterInfo

The ParameterInfo associated with the parameter.

Applies to