Export (0) Print
Expand All

DefaultModelBinder Class

Maps a browser request to a data object. This class provides a concrete implementation of a model binder.

System.Object
  System.Web.Mvc.DefaultModelBinder

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

'Declaration
Public Class DefaultModelBinder _
	Implements IModelBinder
'Usage
Dim instance As DefaultModelBinder

The DefaultModelBinder type exposes the following members.

  NameDescription
Public methodDefaultModelBinderInitializes a new instance of the DefaultModelBinder class.
Top

  NameDescription
Protected propertyBindersGets or sets the model binders for the application.
Public propertyStatic memberResourceClassKeyGets or sets the name of the resource file (class key) that contains localized string values.
Top

  NameDescription
Public methodBindModelBinds the model by using the specified controller context and binding context.
Protected methodBindPropertyBinds the specified property by using the specified controller context and binding context and the specified property descriptor.
Protected methodCreateModelCreates the specified model type by using the specified controller context and binding context.
Protected methodStatic memberCreateSubIndexName(String, Int32)Creates an index (a subindex) based on a category of components that make up a larger index, where the specified index value is an integer.
Protected methodStatic memberCreateSubIndexName(String, String)Creates an index (a subindex) based on a category of components that make up a larger index, where the specified index value is a string.
Protected methodStatic memberCreateSubPropertyNameCreates the name of the subproperty by using the specified prefix and property name.
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Protected methodGetFilteredModelPropertiesReturns a set of properties that match the property filter restrictions that are established by the specified binding context.
Public methodGetHashCode (Inherited from Object.)
Protected methodGetModelPropertiesReturns the properties of the model by using the specified controller context and binding context.
Protected methodGetPropertyValueReturns the value of a property using the specified controller context, binding context, property descriptor, and property binder.
Public methodGetType (Inherited from Object.)
Protected methodGetTypeDescriptorReturns the descriptor object for a type that is specified by its controller context and binding context.
Protected methodStatic memberIsModelValidDetermines whether a data model is valid for the specified binding context.
Protected methodMemberwiseClone (Inherited from Object.)
Protected methodOnModelUpdatedCalled when the model is updated.
Protected methodOnModelUpdatingCalled when the model is updating.
Protected methodOnPropertyValidatedCalled when the specified property is validated.
Protected methodOnPropertyValidatingCalled when the specified property is validating.
Protected methodSetPropertySets the specified property by using the specified controller context, binding context, and property value.
Public methodToString (Inherited from Object.)
Top

The DefaultModelBinder class maps the following types of objects to a browser request:

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