Compartilhar via


HttpActionDescriptor.SupportedHttpMethods Property

Gets the collection of supported HTTP methods for the descriptor.

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

Syntax

'Declaration
Public Overridable ReadOnly Property SupportedHttpMethods As Collection(Of HttpMethod)
    Get
'Usage
Dim instance As HttpActionDescriptor 
Dim value As Collection(Of HttpMethod)

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

Property Value

Type: System.Collections.ObjectModel.Collection<HttpMethod>
The collection of supported HTTP methods for the descriptor.

See Also

Reference

HttpActionDescriptor Class

System.Web.Http.Controllers Namespace