ActionContext Costruttori
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Overload
ActionContext() |
Crea un ActionContext vuoto. |
ActionContext(ActionContext) |
Crea un nuovo oggetto ActionContext. |
ActionContext(HttpContext, RouteData, ActionDescriptor) |
Crea un nuovo oggetto ActionContext. |
ActionContext(HttpContext, RouteData, ActionDescriptor, ModelStateDictionary) |
Crea un nuovo oggetto ActionContext. |
ActionContext()
- Origine:
- ActionContext.cs
- Origine:
- ActionContext.cs
- Origine:
- ActionContext.cs
Crea un ActionContext vuoto.
public:
ActionContext();
public ActionContext ();
Public Sub New ()
Commenti
Il costruttore predefinito viene fornito solo a scopo di unit test.
Si applica a
ActionContext(ActionContext)
- Origine:
- ActionContext.cs
- Origine:
- ActionContext.cs
- Origine:
- ActionContext.cs
Crea un nuovo oggetto ActionContext.
public:
ActionContext(Microsoft::AspNetCore::Mvc::ActionContext ^ actionContext);
public ActionContext (Microsoft.AspNetCore.Mvc.ActionContext actionContext);
new Microsoft.AspNetCore.Mvc.ActionContext : Microsoft.AspNetCore.Mvc.ActionContext -> Microsoft.AspNetCore.Mvc.ActionContext
Public Sub New (actionContext As ActionContext)
Parametri
- actionContext
- ActionContext
Oggetto ActionContext da copiare.
Si applica a
ActionContext(HttpContext, RouteData, ActionDescriptor)
- Origine:
- ActionContext.cs
- Origine:
- ActionContext.cs
- Origine:
- ActionContext.cs
Crea un nuovo oggetto ActionContext.
public:
ActionContext(Microsoft::AspNetCore::Http::HttpContext ^ httpContext, Microsoft::AspNetCore::Routing::RouteData ^ routeData, Microsoft::AspNetCore::Mvc::Abstractions::ActionDescriptor ^ actionDescriptor);
public ActionContext (Microsoft.AspNetCore.Http.HttpContext httpContext, Microsoft.AspNetCore.Routing.RouteData routeData, Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor);
new Microsoft.AspNetCore.Mvc.ActionContext : Microsoft.AspNetCore.Http.HttpContext * Microsoft.AspNetCore.Routing.RouteData * Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor -> Microsoft.AspNetCore.Mvc.ActionContext
Public Sub New (httpContext As HttpContext, routeData As RouteData, actionDescriptor As ActionDescriptor)
Parametri
- httpContext
- HttpContext
Oggetto HttpContext per la richiesta corrente.
- actionDescriptor
- ActionDescriptor
Oggetto ActionDescriptor per l'azione selezionata.
Si applica a
ActionContext(HttpContext, RouteData, ActionDescriptor, ModelStateDictionary)
- Origine:
- ActionContext.cs
- Origine:
- ActionContext.cs
- Origine:
- ActionContext.cs
Crea un nuovo oggetto ActionContext.
public:
ActionContext(Microsoft::AspNetCore::Http::HttpContext ^ httpContext, Microsoft::AspNetCore::Routing::RouteData ^ routeData, Microsoft::AspNetCore::Mvc::Abstractions::ActionDescriptor ^ actionDescriptor, Microsoft::AspNetCore::Mvc::ModelBinding::ModelStateDictionary ^ modelState);
public ActionContext (Microsoft.AspNetCore.Http.HttpContext httpContext, Microsoft.AspNetCore.Routing.RouteData routeData, Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary modelState);
new Microsoft.AspNetCore.Mvc.ActionContext : Microsoft.AspNetCore.Http.HttpContext * Microsoft.AspNetCore.Routing.RouteData * Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor * Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary -> Microsoft.AspNetCore.Mvc.ActionContext
Public Sub New (httpContext As HttpContext, routeData As RouteData, actionDescriptor As ActionDescriptor, modelState As ModelStateDictionary)
Parametri
- httpContext
- HttpContext
Oggetto HttpContext per la richiesta corrente.
- actionDescriptor
- ActionDescriptor
Oggetto ActionDescriptor per l'azione selezionata.
- modelState
- ModelStateDictionary
Oggetto ModelStateDictionary.