Sets the Last-Modified HTTP header to the DateTime value supplied.
- date
- The new DateTime value for the Last-Modified header.
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.