NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

HttpCachePolicy.AddValidationCallback

Registers a validation callback for the current response.

[Visual Basic]
Public Sub AddValidationCallback( _
   ByVal handler As HttpCacheValidateHandler, _
   ByVal data As Object _
)
[C#]
public void AddValidationCallback(
   HttpCacheValidateHandler handler,
   object data
);
[C++]
public: void AddValidationCallback(
   HttpCacheValidateHandler* handler,
   Object* data
);
[JScript]
public function AddValidationCallback(
   handler : HttpCacheValidateHandler,
   data : Object
);

Parameters

handler
The HttpCacheValidateHandler value.
data
The arbitrary user-supplied data that is passed back to the delegate when called[RB33] .

Remarks

Before the response is served from the cache, it [RB34] will call all registered handlers to ensure resource validity. If any handler sets a flag indicating that the resource is invalid, entry is marked invalid and evicted from the cache. The request is then handled as if it were a cache miss.

See Also

HttpCachePolicy Class | HttpCachePolicy Members | System.Web Namespace