HttpContextHelper Class

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Contains methods that are used to execute an action delegate in a nulla null reference (Nothing in Visual Basic) context.

Inheritance Hierarchy

System.Object
  Microsoft.Web.Infrastructure.HttpContextHelper

Namespace:  Microsoft.Web.Infrastructure
Assembly:  Microsoft.Web.Infrastructure (in Microsoft.Web.Infrastructure.dll)

Syntax

'Declaration
Public NotInheritable Class HttpContextHelper
'Usage
You do not need to declare an instance of a static class in order to access its members.
public static class HttpContextHelper
public ref class HttpContextHelper abstract sealed
public final class HttpContextHelper

The HttpContextHelper type exposes the following members.

Methods

  Name Description
Public methodStatic member ExecuteInNullContext Infrastructure. Sets the HTTP context to nulla null reference (Nothing in Visual Basic), executes the specified action delegate, and then restores the previous HTTP context.

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.Web.Infrastructure Namespace