System.Web Namespace HttpCacheVaryByParams Class
Sets or retrieves the name of the HTTP Get or Post parameter that is used to select one of several different cached responses.
In [ C# ], this property is the indexer for the HttpCacheVaryByParams class.
[ VB ]
Public Default Property Item ( _
ByVal header As String _
) As Boolean
[ C# ]
public bool this [
string header
] {get; set;}
[ C++ ]
public: __property bool get_Item (
String* header
);
public: __property void set_Item (
String* header,
bool
);
[ JScript ]
returnValue = HttpCacheVaryByParamsObject.Item ( header );
HttpCacheVaryByParamsObject.Item ( header ) = returnValue;
-or-
returnValue = HttpCacheVaryByParamsObject ( header );
HttpCacheVaryByParamsObject ( header ) = returnValue;
In [ JScript ], you can use the default indexed properties defined by a type, but you cannot explicitly define your own. However, specifying the expando attribute on a class automatically provides a default indexed property whose type is Object and whose index type is String.
- header
- The name of the custom header.
- header
- The name of the custom header.
The parameter name.
Exception Type |
Condition |
ArgumentNullException |
Occurs when header is a null reference ( Nothing in Visual Basic ). |
HttpCacheVaryByParams Members Caching Multiple Versions of a Page