Skip to content

Latest commit

 

History

History
48 lines (38 loc) · 3.14 KB

File metadata and controls

48 lines (38 loc) · 3.14 KB
title IHttpServer::RemoveFragmentFromCache Method
description Learn how the IHttpServer::RemoveFragmentFromCache method removes a specific fragment from the cache.
ms.date 10/07/2016
ms.assetid d2fcb067-d89b-e57f-4faf-8f38d79843f8

IHttpServer::RemoveFragmentFromCache Method

Removes a specific fragment from the cache.

Syntax

virtual HRESULT RemoveFragmentFromCache(  
   __in WCHAR* pszFragmentName  
) = 0;  

Parameters

pszFragmentName
[IN] A pointer to a WCHAR that specifies the fragment to be removed from the cache.

Return Value

An HRESULT. Possible values include, but are not limited to, those in the following table.

Value Description
S_OK Indicates that the operation was successful.
ERROR_FILE_NOT_FOUND Indicates that the fragment specified by the pszFragmentName parameter could not be found.

Remarks

Developers can use the AddFragmentToCache, ReadFragmentFromCache, and RemoveFragmentFromCache methods, respectively, to add HTTP_DATA_CHUNK structures to the fragment cache, or to retrieve and remove HTTP_DATA_CHUNK structures from the cache. These methods give developers a small degree of custom functionality to use the built-in IIS cache for storing and retrieving data fragments in the cache.

Note

Http.sys manages and owns the fragment cache. At any time, Http.sys may override or delete information that you directed to be stored. There is currently no way to lock information in the fragment cache as nonvolatile information.

Requirements

Type Description
Client - IIS 7.0 on [!INCLUDEwinvista]
- IIS 7.5 on Windows 7
- IIS 8.0 on Windows 8
- IIS 10.0 on Windows 10
Server - IIS 7.0 on [!INCLUDEwinsrv2008]
- IIS 7.5 on Windows Server 2008 R2
- IIS 8.0 on Windows Server 2012
- IIS 8.5 on Windows Server 2012 R2
- IIS 10.0 on Windows Server 2016
Product - IIS 7.0, IIS 7.5, IIS 8.0, IIS 8.5, IIS 10.0
- [!INCLUDEiisexp75], [!INCLUDEiisexp80], [!INCLUDEiisexp100]
Header Httpserv.h

See Also

IHttpServer Interface
IHttpServer::AddFragmentToCache Method
IHttpServer::ReadFragmentFromCache Method