BindAttribute BindAttribute BindAttribute Class

Definition

This attribute can be used on action parameters and types, to indicate model level metadata.

[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Parameter, AllowMultiple=false, Inherited=true)]
public class BindAttribute : Attribute, Microsoft.AspNetCore.Mvc.ModelBinding.IModelNameProvider, Microsoft.AspNetCore.Mvc.ModelBinding.IPropertyFilterProvider
type BindAttribute = class
    inherit Attribute
    interface IModelNameProvider
    interface IPropertyFilterProvider
Public Class BindAttribute
Inherits Attribute
Implements IModelNameProvider, IPropertyFilterProvider
Inheritance
BindAttributeBindAttributeBindAttribute
Attributes
Implements

Constructors

BindAttribute(String[]) BindAttribute(String[]) BindAttribute(String[])

Creates a new instance of BindAttribute.

Properties

Include Include Include

Gets the names of properties to include in model binding.

Prefix Prefix Prefix

Allows a user to specify a particular prefix to match during model binding.

PropertyFilter PropertyFilter PropertyFilter

Explicit Interface Implementations

IModelNameProvider.Name IModelNameProvider.Name IModelNameProvider.Name

Represents the model name used during model binding.

Applies to