Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
interface Microsoft.​AspNetCore.​Http.​Metadata.​IParameterBindingMetadata
Assembly: Microsoft.AspNetCore.Http.Abstractions
Exposes metadata about the parameter binding details associated with a parameter in the endpoints handler.
Remarks
This metadata is injected by the RequestDelegateFactory and RequestDelegateGenerator components
and is primarily intended for consumption by the EndpointMetadataApiDescriptionProvider in
ApiExplorer.
Properties
string
Name
The name of the parameter.
bool
HasTryParse
<see langword="true " /> is the parameter is associated with a type that implements <see cref="T:System.IParsable`1" /> or exposes a <c>TryParse</c> method.
bool
HasBindAsync
<see langword="true" /> if the parameter is associated with a type that implements a <c>BindAsync</c> method.
The <see cref="P:Microsoft.AspNetCore.Http.Metadata.IParameterBindingMetadata.ParameterInfo" /> associated with the parameter.
bool
IsOptional
<see langword="true" /> if the parameter is optional.