HttpMethodActionConstraint Class¶
- Namespace
Microsoft.AspNetCore.Mvc.Internal
- Assemblies
- Microsoft.AspNetCore.Mvc.Core
Syntax¶
public class HttpMethodActionConstraint : IActionConstraint, IActionConstraintMetadata
-
class
Microsoft.AspNetCore.Mvc.Internal.
HttpMethodActionConstraint
Constructors¶
-
HttpMethodActionConstraint
(System.Collections.Generic.IEnumerable<System.String>)¶ public HttpMethodActionConstraint(IEnumerable<string> httpMethods)
-
Methods¶
-
Accept
(Microsoft.AspNetCore.Mvc.ActionConstraints.ActionConstraintContext)¶ Return type: System.Boolean public bool Accept(ActionConstraintContext context)
-
Fields¶
-
HttpMethodConstraintOrder
()¶ Return type: System.Int32 public static readonly int HttpMethodConstraintOrder
-
Properties¶
-
Microsoft.AspNetCore.Mvc.Internal.HttpMethodActionConstraint.
HttpMethods
¶ Return type: System.Collections.Generic.IEnumerable<System.String> public IEnumerable<string> HttpMethods { get; }
-
Microsoft.AspNetCore.Mvc.Internal.HttpMethodActionConstraint.
Order
¶ Return type: System.Int32 public int Order { get; }
-