Aracılığıyla paylaş


HttpPostAttribute Sınıf

Tanım

Yöntemin yalnızca HTTP POST isteklerini işlemesi için bir eylem yöntemini kısıtlamak için kullanılan bir özniteliği temsil eder.

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

Oluşturucular

HttpPostAttribute()

HttpPostAttribute sınıfının yeni bir örneğini başlatır.

Yöntemler

IsValidForRequest(ControllerContext, MethodInfo)

İstek sonrası eylem yönteminin belirtilen denetleyici bağlamı için geçerli olup olmadığını belirler.

Şunlara uygulanır