HttpApplication.PreSendRequestContent 事件

定義

正好發生於 ASP.NET 傳送內容給用戶端時。Occurs just before ASP.NET sends content to the client.

public:
 event EventHandler ^ PreSendRequestContent;
public event EventHandler PreSendRequestContent;
member this.PreSendRequestContent : EventHandler 
Public Custom Event PreSendRequestContent As EventHandler 

事件類型

EventHandler

備註

PreSendRequestContent事件可能會發生多次。The PreSendRequestContent event may occur multiple times.

如需如何處理事件的詳細資訊,請參閱 處理和引發事件For more information about how to handle events, see Handling and Raising Events.

警告

請勿搭配 PreSendRequestContent 執行的受管理模組使用 IHttpModuleDo not use PreSendRequestContent with managed modules that implement IHttpModule. 設定這些屬性可能會造成非同步要求的問題。Setting these properties can cause issues with asynchronous requests. 應用程式要求的路由 (ARR) 和 websocket 的組合可能會導致存取違規例外狀況,而導致 w3wp.exe 損毀。The combination of Application Requested Routing (ARR) and websockets might lead to access violation exceptions that can cause w3wp to crash. 例如,iiscore!iiscore.dll 中的 W3_CONTEXT_BASE:: GetIsLastNotification + 68 造成存取違規例外狀況 (0xC0000005) 。For example, iiscore!W3_CONTEXT_BASE::GetIsLastNotification+68 in iiscore.dll has caused an access violation exception (0xC0000005).

適用於

另請參閱