DefaultModelBindingContext Class

Definition

A context that contains operating information for model binding and validation.

public ref class DefaultModelBindingContext : Microsoft::AspNetCore::Mvc::ModelBinding::ModelBindingContext
public class DefaultModelBindingContext : Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext
type DefaultModelBindingContext = class
    inherit ModelBindingContext
Public Class DefaultModelBindingContext
Inherits ModelBindingContext
Inheritance
DefaultModelBindingContext

Constructors

DefaultModelBindingContext()

Initializes a new instance of the DefaultModelBindingContext class.

Properties

ActionContext
BinderModelName
BindingSource
FieldName
HttpContext

Gets the HttpContext associated with this context.

(Inherited from ModelBindingContext)
IsTopLevelObject
Model
ModelMetadata
ModelName
ModelState
ModelType

Gets the type of the model.

(Inherited from ModelBindingContext)
OriginalModelName

Gets or sets the name of the top-level model. This is not reset to Empty when value providers have no match for that model.

(Inherited from ModelBindingContext)
OriginalValueProvider

Gets or sets the original value provider to be used when value providers are not filtered.

PropertyFilter
Result
ValidationState
ValueProvider

Methods

CreateBindingContext(ActionContext, IValueProvider, ModelMetadata, BindingInfo, String)

Creates a new DefaultModelBindingContext for top-level model binding operation.

EnterNestedScope()
EnterNestedScope(ModelMetadata, String, String, Object)
ExitNestedScope()

Applies to