HttpOptionsAttribute Class¶
Identifies an action that only supports the HTTP OPTIONS method.
- Namespace
Microsoft.AspNetCore.Mvc- Assemblies
- Microsoft.AspNetCore.Mvc.Core
Inheritance Hierarchy¶
System.ObjectSystem.AttributeMicrosoft.AspNetCore.Mvc.Routing.HttpMethodAttributeMicrosoft.AspNetCore.Mvc.HttpOptionsAttribute
Syntax¶
public class HttpOptionsAttribute : HttpMethodAttribute, _Attribute, IActionHttpMethodProvider, IRouteTemplateProvider
-
class
Microsoft.AspNetCore.Mvc.HttpOptionsAttribute
Constructors¶
-
HttpOptionsAttribute()¶ Creates a new
Microsoft.AspNetCore.Mvc.HttpOptionsAttribute.public HttpOptionsAttribute()
-
HttpOptionsAttribute(System.String) Creates a new
Microsoft.AspNetCore.Mvc.HttpOptionsAttributewith the given route template.Arguments: template (System.String) – The route template. May not be null. public HttpOptionsAttribute(string template)
-