2 types derived from BindingBehaviorAttribute
Microsoft.AspNetCore.Mvc.Core (2)
ModelBinding\BindNeverAttribute.cs (1)
14
public sealed class BindNeverAttribute :
BindingBehaviorAttribute
ModelBinding\BindRequiredAttribute.cs (1)
14
public sealed class BindRequiredAttribute :
BindingBehaviorAttribute
7 references to BindingBehaviorAttribute
Microsoft.AspNetCore.Mvc.Core (7)
ModelBinding\BindingBehaviorAttribute.cs (1)
15
/// Initializes a new <see cref="
BindingBehaviorAttribute
"/> instance.
ModelBinding\Metadata\DefaultBindingMetadataProvider.cs (6)
67
var
bindingBehavior = FindBindingBehavior(context);
148
private static
BindingBehaviorAttribute
? FindBindingBehavior(BindingMetadataProviderContext context)
155
var matchingAttributes = context.PropertyAttributes!.OfType<
BindingBehaviorAttribute
>();
158
.GetCustomAttributes(typeof(
BindingBehaviorAttribute
), inherit: true)
159
.OfType<
BindingBehaviorAttribute
>()
162
return context.ParameterAttributes!.OfType<
BindingBehaviorAttribute
>().FirstOrDefault();