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
Inheritance
HttpOptionsAttribute
Inherited Members

Constructors

HttpOptionsAttribute()

Initializes a new instance of the HttpOptionsAttribute class.

public HttpOptionsAttribute()

Properties

HttpMethods

Gets the collection of methods supported by HTTP OPTIONS requests.

public Collection<HttpMethod> HttpMethods { get; }

Property Value

Collection<HttpMethod>

The collection of methods supported by HTTP OPTIONS requests.