BindNeverAttribute Class

Indicates that a property should be excluded from model binding. When applied to a property, the model binding system excludes that property. When applied to a type, the model binding system excludes all properties of that type.

Namespace
Microsoft.AspNetCore.Mvc.ModelBinding
Assemblies
  • Microsoft.AspNetCore.Mvc.Core

Syntax

[AttributeUsage(AttributeTargets.Class | AttributeTargets.Property, AllowMultiple = false, Inherited = true)]
public sealed class BindNeverAttribute : BindingBehaviorAttribute, _Attribute
class Microsoft.AspNetCore.Mvc.ModelBinding.BindNeverAttribute

Constructors

BindNeverAttribute()

Initializes a new Microsoft.AspNetCore.Mvc.ModelBinding.BindNeverAttribute instance.

public BindNeverAttribute()