編集

次の方法で共有


HttpCachePolicyBase.SetMaxAge(TimeSpan) Method

Definition

When overridden in a derived class, sets the Cache-Control: max-age HTTP header to the specified time span.

public:
 virtual void SetMaxAge(TimeSpan delta);
public virtual void SetMaxAge (TimeSpan delta);
abstract member SetMaxAge : TimeSpan -> unit
override this.SetMaxAge : TimeSpan -> unit
Public Overridable Sub SetMaxAge (delta As TimeSpan)

Parameters

delta
TimeSpan

The time span to set the Cache-Control: max-age header to.

Exceptions

Applies to