Delen via


HttpPutAttribute Class

Definition

Represents an attribute that is used to restrict an action method so that the method handles only HTTP PUT requests.

[System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=false, Inherited=true)]
public sealed class HttpPutAttribute : System.Web.Mvc.ActionMethodSelectorAttribute
type HttpPutAttribute = class
    inherit ActionMethodSelectorAttribute
Public NotInheritable Class HttpPutAttribute
Inherits ActionMethodSelectorAttribute
Inheritance
Attributes

Constructors

HttpPutAttribute()

Initializes a new instance of the HttpPutAttribute class.

Methods

IsValidForRequest(ControllerContext, MethodInfo)

Determines whether the action method put request is valid for the specified controller context.

Applies to