Freigeben über


HttpOptionsAttribute.HttpMethods Property

Gets the collection of methods supported by HTTP OPTIONS requests.

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 HttpOptionsAttribute 
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>
The collection of methods supported by HTTP OPTIONS requests.

See Also

Reference

HttpOptionsAttribute Class

System.Web.Http Namespace