Compartilhar via


AcceptVerbsAttribute.IsValidForRequest Method

Determines whether the specified method information is valid for the specified controller context.

Namespace:  System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

Syntax

'Declaration
Public Overrides Function IsValidForRequest ( _
    controllerContext As ControllerContext, _
    methodInfo As MethodInfo _
) As Boolean
public override bool IsValidForRequest(
    ControllerContext controllerContext,
    MethodInfo methodInfo
)
public:
virtual bool IsValidForRequest(
    ControllerContext^ controllerContext, 
    MethodInfo^ methodInfo
) override

Parameters

Return Value

Type: System.Boolean
true if the method information is valid; otherwise, false.

Exceptions

Exception Condition
ArgumentNullException

The controllerContext parameter is null reference (Nothing in Visual Basic).

See Also

Reference

AcceptVerbsAttribute Class

System.Web.Mvc Namespace