CacheControlHeaderValue::SharedMaxAge Property

.NET Framework (current version)
 

The shared maximum age, specified in seconds, in an HTTP response that overrides the "max-age" directive in a cache-control header or an Expires header for a shared cache.

Namespace:   System.Net.Http.Headers
Assembly:  System.Net.Http (in System.Net.Http.dll)

public:
property Nullable<TimeSpan> SharedMaxAge {
	Nullable<TimeSpan> get();
	void set(Nullable<TimeSpan> value);
}

Property Value

Type: System::Nullable<TimeSpan>

The time in seconds.

This property represents the "s-max-age" directive in a cache-control header field on an HTTP response.

Universal Windows Platform
Available since 8
.NET Framework
Available since 4.5
Portable Class Library
Supported in: portable .NET platforms
Windows Phone
Available since 8.1
Return to top
Show: