BindAttribute Class

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


Namespace:  System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

public final class BindAttribute extends Attribute

The BindAttribute type exposes the following members.

Public methodBindAttributeInitializes a new instance of the BindAttribute class.

Public propertyExcludeGets or sets a comma-delimited list of property names for which binding is not allowed.
Public propertyIncludeGets or sets a comma-delimited list of property names for which binding is allowed.
Public propertyPrefixGets or sets the prefix to use when markup is rendered for binding to an action argument or to a model property.
Public propertyTypeId (Inherited from Attribute.)

Public methodEquals (Inherited from Attribute.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Attribute.)
Public methodGetType (Inherited from Object.)
Public methodIsDefaultAttribute (Inherited from Attribute.)
Public methodIsPropertyAllowedDetermines whether the specified property is allowed.
Public methodMatch (Inherited from Attribute.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)

For more information about using attributes, see Extending Metadata Using Attributes.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.