HttpResponseWrapper.AddOnSendingHeaders Method (Action<HttpContextBase>)

.NET Framework (current version)
 

Registers a callback that the ASP.NET runtime will invoke immediately before response headers are sent for this request.

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

public override ISubscriptionToken AddOnSendingHeaders(
	Action<HttpContextBase> callback
)

Parameters

callback
Type: System.Action<HttpContextBase>

The callback method.

Return Value

Type: System.Web.ISubscriptionToken

An ISubscriptionToken object that represents the subscription to the OnSendingHeaders pseudo event.

.NET Framework
Available since 4.5.2
Return to top
Show: