Bewerken

Share via


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
ModelBindingExecutionContext

Constructors

ModelBindingExecutionContext(HttpContextBase, ModelStateDictionary)

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

Properties

HttpContext

Gets the HTTP context.

ModelState

Gets the model state.

Methods

Equals(Object)

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

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
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()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
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()

Returns a string that represents the current object.

(Inherited from Object)
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