Table of Contents

Class HttpGetAttribute

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

Specifies that an action supports the GET HTTP method.

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

Constructors

HttpGetAttribute()

Initializes a new instance of the HttpGetAttribute class.

public HttpGetAttribute()

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.