Aracılığıyla paylaş


HttpGetAttribute Sınıf

Tanım

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

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

Oluşturucular

HttpGetAttribute()

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

Yöntemler

IsValidForRequest(ControllerContext, MethodInfo)

Get isteğinin belirtilen denetleyici bağlamı için geçerli olup olmadığını belirler.

Şunlara uygulanır