BindAttribute BindAttribute 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
BindAttributeBindAttributeBindAttribute
Attributes

Constructors

BindAttribute() BindAttribute() BindAttribute()

Initializes a new instance of the BindAttribute class.

Properties

Exclude Exclude Exclude

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

Include Include Include

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

Prefix Prefix 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) IsPropertyAllowed(String) IsPropertyAllowed(String)

Determines whether the specified property is allowed.

Applies to