// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Collections.ObjectModel;
using System.Net.Http;
using System.Web.Http.Controllers;
namespace System.Web.Http
{
///
/// Specifies that an action supports the PUT HTTP method.
///
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = true)]
public sealed class HttpPutAttribute : Attribute, IActionHttpMethodProvider
{
private static readonly Collection _supportedMethods = new Collection(new HttpMethod[] { HttpMethod.Put });
public Collection HttpMethods
{
get
{
return _supportedMethods;
}
}
}
}