HttpRequest.InsertEntityBody Method ()

.NET Framework (current version)
 

Provides IIS with a copy of the HTTP request entity body.

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

member InsertEntityBody : unit -> unit

Exception Condition
PlatformNotSupportedException

The method was invoked on a version of IIS earlier than IIS 7.0.

IIS does not maintain a copy of the request after it has been read. Therefore, it is recommended that only the handler for an HTTP request should read the request entity.

The HttpRequest.InsertEntityBody method overload provides IIS with a copy of the request entity if it was previously read by ASP.NET. This method overload is useful for cases where ASP.NET has read the entity request and you want to reuse the existing request data.

AspNetHostingPermission

For operating in a hosted environment. Security action: Demand. Associated enumeration: High

.NET Framework
Available since 4.0
Return to top
Show: