HttpCacheDirectiveHeaderValueCollection.MaxAge 属性

定义

获取或设置 Cache-Control HTTP 标头中 max-age 指令的值。

public:
 property IReference<TimeSpan> ^ MaxAge { IReference<TimeSpan> ^ get(); void set(IReference<TimeSpan> ^ value); };
IReference<TimeSpan> MaxAge();

void MaxAge(IReference<TimeSpan> value);
public System.Nullable<System.TimeSpan> MaxAge { get; set; }
var iReference = httpCacheDirectiveHeaderValueCollection.maxAge;
httpCacheDirectiveHeaderValueCollection.maxAge = iReference;
Public Property MaxAge As Nullable(Of TimeSpan)

属性值

Cache-Control HTTP 标头中 max-age 指令的值。

适用于