共用方式為


IResponse::get_ExpiresAbsolute

The IResponse::get_ExpiresAbsolute method retrieves the current value of the Response.ExpiresAbsolute property of the Response object.

HRESULT get_ExpiresAbsolute(
      VARIANT* pvarExpiresRet
);

Parameters

  • pvarExpiresRet
    [retval] [out] Points to a VARIANT that receives the ExpiresAbsolute value. The VARIANT should specify date and time.

Remarks

If the user returns to the same page before the set date and time, the cached version is displayed. If a time is not specified, the page expires at midnight of that day. If a date is not specified, the page expires at the given time on the day that the script is run. If this property is set more than once on a page, the earliest expiration date or time is used. The date value sent in the expires header conforms to the RFC-1123 date format. The time value is converted to Greenwich Mean Time before an Expires header is sent.

Requirements

Client: Requires Windows XP Professional, Windows 2000 Professional, or Windows NT Workstation 4.0.

Server: Requires Windows Server 2003, Windows 2000 Server, or Windows NT Server 4.0.

Product: IIS

See Also