Partager via


ModelBindingContext Class

Provides the context in which a model binder functions.

Inheritance Hierarchy

System.Object
  System.Web.Http.ModelBinding.ModelBindingContext

Namespace:  System.Web.Http.ModelBinding
Assembly:  System.Web.Http (in System.Web.Http.dll)

Syntax

'Declaration
Public Class ModelBindingContext
'Usage
Dim instance As ModelBindingContext
public class ModelBindingContext
public ref class ModelBindingContext
type ModelBindingContext =  class end
public class ModelBindingContext

The ModelBindingContext type exposes the following members.

Constructors

  Name Description
Public method ModelBindingContext() Initializes a new instance of the ModelBindingContext class.
Public method ModelBindingContext(ModelBindingContext) Initializes a new instance of the ModelBindingContext class.

Top

Properties

  Name Description
Public property FallbackToEmptyPrefix Gets or sets a value that indicates whether the binder should use an empty prefix.
Public property Model Gets or sets the model.
Public property ModelMetadata Gets or sets the model metadata.
Public property ModelName Gets or sets the name of the model.
Public property ModelState Gets or sets the state of the model.
Public property ModelType Gets or sets the type of the model.
Public property PropertyMetadata Gets the property metadata.
Public property ValidationNode Gets or sets the validation node.
Public property ValueProvider Gets or sets the value provider.

Top

Methods

  Name Description
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString (Inherited from Object.)

Top

Thread Safety

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

See Also

Reference

System.Web.Http.ModelBinding Namespace