HttpResponseWrapper.AddOnSendingHeaders(Action<HttpContextBase>) 方法

定义

注册一个回调,在即将为此请求发送响应标头之前,ASP.NET 运行时将会调用此回调。

public:
 override System::Web::ISubscriptionToken ^ AddOnSendingHeaders(Action<System::Web::HttpContextBase ^> ^ callback);
public override System.Web.ISubscriptionToken AddOnSendingHeaders (Action<System.Web.HttpContextBase> callback);
override this.AddOnSendingHeaders : Action<System.Web.HttpContextBase> -> System.Web.ISubscriptionToken
Public Overrides Function AddOnSendingHeaders (callback As Action(Of HttpContextBase)) As ISubscriptionToken

参数

callback
Action<HttpContextBase>

回调方法。

返回

表示对 OnSendingHeaders 伪事件的订阅的 ISubscriptionToken 对象。

适用于