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.

System.Object
  System.Attribute
    System.Web.Mvc.BindAttribute

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

[AttributeUsageAttribute(AttributeTargets.Class|AttributeTargets.Parameter, AllowMultiple = false, 
	Inherited = true)]
public sealed class BindAttribute : Attribute

The BindAttribute type exposes the following members.

  NameDescription
Public methodBindAttributeInitializes a new instance of the BindAttribute class.
Top

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

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

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

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.
Show:
© 2014 Microsoft