Partager via


HttpMethodConstraint.AllowedMethods Property

Gets or sets the collection of allowed HTTP verbs for the route.

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

Syntax

'Declaration
Public Property AllowedMethods As Collection(Of HttpMethod)
    Get
    Private Set
'Usage
Dim instance As HttpMethodConstraint
Dim value As Collection(Of HttpMethod)

value = instance.AllowedMethods
public Collection<HttpMethod> AllowedMethods { get; private set; }
public:
property Collection<HttpMethod^>^ AllowedMethods {
    Collection<HttpMethod^>^ get ();
    private: void set (Collection<HttpMethod^>^ value);
}
member AllowedMethods : Collection<HttpMethod> with get, private set
function get AllowedMethods () : Collection<HttpMethod>
private function set AllowedMethods (value : Collection<HttpMethod>)

Property Value

Type: System.Collections.ObjectModel.Collection<HttpMethod>
A collection of allowed HTTP verbs for the route.

See Also

Reference

HttpMethodConstraint Class

System.Web.Http.Routing Namespace