Share via


BindAttribute Class

Definition

Represents an attribute that is used to provide details about how model binding to a parameter should occur.

[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Parameter, AllowMultiple=false, Inherited=true)]
public sealed class BindAttribute : Attribute
type BindAttribute = class
    inherit Attribute
Public NotInheritable Class BindAttribute
Inherits Attribute
Inheritance
BindAttribute
Attributes

Constructors

BindAttribute()

Initializes a new instance of the BindAttribute class.

Properties

Exclude

Gets or sets a comma-delimited list of property names for which binding is not allowed.

Include

Gets or sets a comma-delimited list of property names for which binding is allowed.

Prefix

Gets or sets the prefix to use when markup is rendered for binding to an action argument or to a model property.

Methods

IsPropertyAllowed(String)

Determines whether the specified property is allowed.

Applies to