Share via


RequestFieldValidatorBase.GetHttpContext(ValidationContext) Method

Definition

Returns the HTTP context of the current request.

protected static System.Web.HttpContextBase GetHttpContext (System.ComponentModel.DataAnnotations.ValidationContext validationContext);
static member GetHttpContext : System.ComponentModel.DataAnnotations.ValidationContext -> System.Web.HttpContextBase
Protected Shared Function GetHttpContext (validationContext As ValidationContext) As HttpContextBase

Parameters

validationContext
ValidationContext

The validation context.

Returns

The context.

Applies to