Share via


HttpPostAttribute.HttpMethods Property

Gets a collection of HTTP methods.

Namespace:  System.Web.Http
Assembly:  System.Web.Http (in System.Web.Http.dll)

Syntax

'Declaration
Public ReadOnly Property HttpMethods As Collection(Of HttpMethod)
    Get
'Usage
Dim instance As HttpPostAttribute 
Dim value As Collection(Of HttpMethod)

value = instance.HttpMethods
public Collection<HttpMethod> HttpMethods { get; }
public:
virtual property Collection<HttpMethod^>^ HttpMethods {
    Collection<HttpMethod^>^ get () sealed;
}
abstract HttpMethods : Collection<HttpMethod>
override HttpMethods : Collection<HttpMethod>
final function get HttpMethods () : Collection<HttpMethod>

Property Value

Type: System.Collections.ObjectModel.Collection<HttpMethod>
A collection of HTTP methods.

See Also

Reference

HttpPostAttribute Class

System.Web.Http Namespace