ControllerContext Class¶
The context associated with the current request for a controller.
- Namespace
Microsoft.AspNetCore.Mvc
- Assemblies
- Microsoft.AspNetCore.Mvc.Core
Syntax¶
public class ControllerContext : ActionContext
-
class
Microsoft.AspNetCore.Mvc.
ControllerContext
Constructors¶
-
ControllerContext
()¶ Creates a new
Microsoft.AspNetCore.Mvc.ControllerContext
.public ControllerContext()
-
ControllerContext
(Microsoft.AspNetCore.Mvc.ActionContext) Creates a new
Microsoft.AspNetCore.Mvc.ControllerContext
.Arguments: context (Microsoft.AspNetCore.Mvc.ActionContext) – The Microsoft.AspNetCore.Mvc.ActionContext
associated with the current request.public ControllerContext(ActionContext context)
-
Properties¶
-
Microsoft.AspNetCore.Mvc.ControllerContext.
ActionDescriptor
¶ Gets or sets the
Microsoft.AspNetCore.Mvc.Controllers.ControllerActionDescriptor
associated with the current request.Return type: Microsoft.AspNetCore.Mvc.Controllers.ControllerActionDescriptor public ControllerActionDescriptor ActionDescriptor { get; set; }
-
Microsoft.AspNetCore.Mvc.ControllerContext.
ValueProviderFactories
¶ Gets or sets the list of
Microsoft.AspNetCore.Mvc.ModelBinding.IValueProviderFactory
instances for the current request.Return type: System.Collections.Generic.IList<Microsoft.AspNetCore.Mvc.ModelBinding.IValueProviderFactory> public virtual IList<IValueProviderFactory> ValueProviderFactories { get; set; }
-