ModelBindingExecutionContext ModelBindingExecutionContext ModelBindingExecutionContext ModelBindingExecutionContext Class

Definizione

Incapsula tutte le informazioni esterne al sistema dello strumento di associazione di modelli richieste da tale sistema.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
Ereditarietà
ModelBindingExecutionContextModelBindingExecutionContextModelBindingExecutionContextModelBindingExecutionContext

Costruttori

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

Inizializza una nuova istanza della classe ModelBindingExecutionContext utilizzando il contesto HTTP e lo stato del modello.Initializes a new instance of the ModelBindingExecutionContext class, using the HTTP context and the model state.

Proprietà

HttpContext HttpContext HttpContext HttpContext

Ottiene il contesto HTTP.Gets the HTTP context.

ModelState ModelState ModelState ModelState

Ottiene lo stato del modello.Gets the model state.

Metodi

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

Determina se l'oggetto specificato è uguale all'oggetto corrente.Determines whether the specified object is equal to the current object.

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

Funge da funzione hash predefinita.Serves as the default hash function.

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

Ottiene un oggetto che contiene i valori utilizzati per l'associazione di modelli e archiviati tramite il metodo PublishService<TService>(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()

Ottiene l'oggetto Type dell'istanza corrente.Gets the Type of the current instance.

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

Crea una copia superficiale dell'oggetto Object corrente.Creates a shallow copy of the current Object.

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

Archivia un oggetto che contiene valori utilizzati per l'associazione di modello e che saranno accessibili tramite il metodo GetService<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()

Restituisce una stringa che rappresenta l'oggetto corrente.Returns a string that represents the current object.

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

Ottiene un oggetto che contiene i valori utilizzati per l'associazione di modelli e archiviati tramite il metodo PublishService<TService>(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.

Si applica a