HttpOptionsAttribute Class¶
Identifies an action that only supports the HTTP OPTIONS method.
- Namespace
Microsoft.AspNetCore.Mvc
- Assemblies
- Microsoft.AspNetCore.Mvc.Core
Inheritance Hierarchy¶
System.Object
System.Attribute
Microsoft.AspNetCore.Mvc.Routing.HttpMethodAttribute
Microsoft.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.HttpOptionsAttribute
with the given route template.Arguments: template (System.String) – The route template. May not be null. public HttpOptionsAttribute(string template)
-