Aracılığıyla paylaş


HttpOptionsAttribute Sınıf

Tanım

Yöntemin yalnızca HTTP OPTIONS 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 HttpOptionsAttribute : System.Web.Mvc.ActionMethodSelectorAttribute
type HttpOptionsAttribute = class
    inherit ActionMethodSelectorAttribute
Public NotInheritable Class HttpOptionsAttribute
Inherits ActionMethodSelectorAttribute
Devralma
Öznitelikler

Oluşturucular

HttpOptionsAttribute()

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

Yöntemler

IsValidForRequest(ControllerContext, MethodInfo)

Eylem yöntemi isteğinin belirtilen denetleyici bağlamı için geçerli olup olmadığını belirler.

Şunlara uygulanır