HttpCachePolicyWrapper.SetLastModified(DateTime) 方法

定义

Last-Modified HTTP 标头设置为指定的日期和时间。Sets the Last-Modified HTTP header to the specified date and time.

public:
 override void SetLastModified(DateTime date);
public override void SetLastModified (DateTime date);
override this.SetLastModified : DateTime -> unit
Public Overrides Sub SetLastModified (date As DateTime)

参数

date
DateTime

要将 Last-Modified 标头设置为的日期时间值。The date-time value to set the Last-Modified header to.

例外

date 晚于当前 DateTimedate is later than the current DateTime.

适用于