System.Web.HttpCachePolicy.SetLastModified Method

Sets the Last-Modified HTTP header to the DateTime value supplied.

Syntax

public void SetLastModified (DateTime date)

Parameters

date
The new DateTime value for the Last-Modified header.

Remarks

The Last-Modified HTTP header time stamps the document with the DateTime value indicating when the document was last modified.

This method will fail if the caching restrictiveness hierarchy is violated.

HttpCachePolicy.SetLastModified(DateTime) is introduced in the .NET Framework version 3.5. For more information, see The .NET Framework 3.5 Architecture.

Requirements

Namespace: System.Web
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0