Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

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)

<AttributeUsageAttribute(AttributeTargets.Class Or AttributeTargets.Parameter, AllowMultiple := False,  _
	Inherited := True)> _
Public NotInheritable Class BindAttribute _
	Inherits Attribute
Dim instance As BindAttribute

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.)

Explicit interface implemetationPrivate method_Attribute.GetIDsOfNames (Inherited from Attribute.)
Explicit interface implemetationPrivate method_Attribute.GetTypeInfo (Inherited from Attribute.)
Explicit interface implemetationPrivate method_Attribute.GetTypeInfoCount (Inherited from Attribute.)
Explicit interface implemetationPrivate method_Attribute.Invoke (Inherited from Attribute.)

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.
© 2015 Microsoft