HttpCacheVaryByContentEncodings::Item Property (String^)

 

Gets or sets a value that indicates whether the cache varies according to the specified content encoding.

Namespace:   System.Web
Assembly:  System.Web (in System.Web.dll)

public:
property bool default[
	String^ contentEncoding
] {
	bool get(String^ contentEncoding);
	void set(String^ contentEncoding, bool value);
}

Parameters

contentEncoding
Type: System::String^

The name of the content encoding.

Property Value

Type: System::Boolean

true if the cache should vary by the specified content encoding; otherwise, false.

Exception Condition
ArgumentNullException

The content encoding is null.

.NET Framework
Available since 2.0
Return to top
Show: