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


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


Public NotInheritable Class HttpContextHelper
public static class HttpContextHelper
public ref class HttpContextHelper abstract sealed
type HttpContextHelper =  class end
public final class HttpContextHelper

The HttpContextHelper type exposes the following members.


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


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


Microsoft.Web.Infrastructure Namespace