System.Web.HttpCachePolicy.SetExpires Method

Sets the Expires HTTP header to an absolute date and time.

Syntax

public void SetExpires (DateTime date)

Parameters

date
The absolute DateTime value to set the Expires header to.

Remarks

This method will fail if the expiration date violates the principle of restrictiveness.

Requirements

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