Share 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

public Collection<HttpMethod> AllowedMethods {
    [CompilerGeneratedAttribute]
    get;
    [CompilerGeneratedAttribute]
    private set;
}
public:
property Collection<HttpMethod^>^ AllowedMethods {
    [CompilerGeneratedAttribute]
    Collection<HttpMethod^>^ get();
    [CompilerGeneratedAttribute]
    private: void set(Collection<HttpMethod^>^ value);
}
member AllowedMethods : Collection<HttpMethod> with get, private set
Public Property AllowedMethods As Collection(Of HttpMethod)
    Get
    Private Set
End Property

Property Value

Type: System.Collections.ObjectModel.Collection<HttpMethod>

A collection of allowed HTTP verbs for the route.

See Also

HttpMethodConstraint Class
System.Web.Http.Routing Namespace

Return to top