ActionConstraintProviderContext Class¶
Context for an action constraint provider.
- Namespace
Microsoft.AspNetCore.Mvc.ActionConstraints- Assemblies
- Microsoft.AspNetCore.Mvc.Abstractions
Syntax¶
public class ActionConstraintProviderContext
-
class
Microsoft.AspNetCore.Mvc.ActionConstraints.ActionConstraintProviderContext
Constructors¶
-
ActionConstraintProviderContext(Microsoft.AspNetCore.Http.HttpContext, Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor, System.Collections.Generic.IList<Microsoft.AspNetCore.Mvc.ActionConstraints.ActionConstraintItem>)¶ Creates a new
Microsoft.AspNetCore.Mvc.ActionConstraints.ActionConstraintProviderContext.Arguments: - context (Microsoft.AspNetCore.Http.HttpContext) – The
Microsoft.AspNetCore.Http.HttpContextassociated with the request. - action (Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor) – The
Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptorfor which constraints are being created. - items (System.Collections.Generic.IList<Microsoft.AspNetCore.Mvc.ActionConstraints.ActionConstraintItem>) – The list of
Microsoft.AspNetCore.Mvc.ActionConstraints.ActionConstraintItemobjects.
public ActionConstraintProviderContext(HttpContext context, ActionDescriptor action, IList<ActionConstraintItem> items)
- context (Microsoft.AspNetCore.Http.HttpContext) – The
-
Properties¶
-
Microsoft.AspNetCore.Mvc.ActionConstraints.ActionConstraintProviderContext.Action¶ The
Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptorfor which constraints are being created.Return type: Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor public ActionDescriptor Action { get; }
-
Microsoft.AspNetCore.Mvc.ActionConstraints.ActionConstraintProviderContext.HttpContext¶ The
Microsoft.AspNetCore.Http.HttpContextassociated with the request.Return type: Microsoft.AspNetCore.Http.HttpContext public HttpContext HttpContext { get; }
-
Microsoft.AspNetCore.Mvc.ActionConstraints.ActionConstraintProviderContext.Results¶ The list of
Microsoft.AspNetCore.Mvc.ActionConstraints.ActionConstraintItemobjects.Return type: System.Collections.Generic.IList<Microsoft.AspNetCore.Mvc.ActionConstraints.ActionConstraintItem> public IList<ActionConstraintItem> Results { get; }
-