共用方式為


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指示詞的值。

適用於