Table of Contents

Class HttpOptionsAttribute

Namespace
System.Web.Http
Assembly
System.Web.Http.dll

Represents an attribute that is used to restrict an HTTP method so that the method handles only HTTP OPTIONS requests.

[AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = true)]
public sealed class HttpOptionsAttribute : Attribute, IActionHttpMethodProvider
Inheritance
HttpOptionsAttribute
Implements
Inherited Members

Constructors

HttpOptionsAttribute()

Initializes a new instance of the HttpOptionsAttribute class.

public HttpOptionsAttribute()

Properties

HttpMethods

Gets the http methods that correspond to this attribute.

public Collection<HttpMethod> HttpMethods { get; }

Property Value

Collection<HttpMethod>

The http methods that correspond to this attribute.