forked from haoduotnt/aspnetwebstack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHttpPutAttribute.cs
More file actions
33 lines (30 loc) · 1.11 KB
/
HttpPutAttribute.cs
File metadata and controls
33 lines (30 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
using System.Collections.ObjectModel;
using System.Net.Http;
using System.Web.Http.Controllers;
using System.Web.Http.Routing;
namespace System.Web.Http
{
/// <summary>
/// Specifies that an action supports the PUT HTTP method.
/// </summary>
[AttributeUsage(AttributeTargets.Method, AllowMultiple = true, Inherited = true)]
public sealed class HttpPutAttribute : HttpVerbAttribute
{
/// <summary>
/// Initializes a new instance of the <see cref="HttpPutAttribute" /> class.
/// </summary>
public HttpPutAttribute()
: base(HttpMethod.Put)
{
}
/// <summary>
/// Initializes a new instance of the <see cref="HttpPutAttribute" /> class.
/// </summary>
/// <param name="routeTemplate">The route template describing the URI pattern to match against.</param>
public HttpPutAttribute(string routeTemplate)
: base(HttpMethod.Put, routeTemplate)
{
}
}
}