Table of Contents

Class AjaxRequestExtensions

Namespace
System.Web.Mvc
Assembly
System.Web.Mvc.dll

Represents a class that extends the System.Web.HttpRequestBase class by adding the ability to determine whether an HTTP request is an AJAX request.

public static class AjaxRequestExtensions
Inheritance
AjaxRequestExtensions
Inherited Members

Methods

IsAjaxRequest(HttpRequestBase)

Determines whether the specified HTTP request is an AJAX request.

public static bool IsAjaxRequest(this HttpRequestBase request)

Parameters

request HttpRequestBase

The HTTP request.

Returns

bool

true if the specified HTTP request is an AJAX request; otherwise, false.

Exceptions

ArgumentNullException

The request parameter is null (Nothing in Visual Basic).