ModelBindingExecutionContext ModelBindingExecutionContext ModelBindingExecutionContext ModelBindingExecutionContext Class

Definition

Encapsulates all of the information that is external to the model binding system that the model binding system needs.

public ref class ModelBindingExecutionContext
public class ModelBindingExecutionContext
type ModelBindingExecutionContext = class
Public Class ModelBindingExecutionContext
Inheritance
ModelBindingExecutionContextModelBindingExecutionContextModelBindingExecutionContextModelBindingExecutionContext

Constructors

ModelBindingExecutionContext(HttpContextBase, ModelStateDictionary) ModelBindingExecutionContext(HttpContextBase, ModelStateDictionary) ModelBindingExecutionContext(HttpContextBase, ModelStateDictionary) ModelBindingExecutionContext(HttpContextBase, ModelStateDictionary)

Initializes a new instance of the ModelBindingExecutionContext class, using the HTTP context and the model state.

Properties

HttpContext HttpContext HttpContext HttpContext

Gets the HTTP context.

ModelState ModelState ModelState ModelState

Gets the model state.

Methods

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetService<TService>() GetService<TService>() GetService<TService>() GetService<TService>()

Gets an object that contains values that are used for model binding and that have been stored by using the PublishService<TService>(TService) method.

GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
PublishService<TService>(TService) PublishService<TService>(TService) PublishService<TService>(TService) PublishService<TService>(TService)

Stores an object that contains values that are used for model binding and that will be accessed by using the GetService<TService>() method.

ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)
TryGetService<TService>() TryGetService<TService>() TryGetService<TService>() TryGetService<TService>()

Gets an object that contains values that are used for model binding and that have been stored by using the PublishService<TService>(TService) method.

Applies to