This documentation is archived and is not being maintained.
HttpCacheVaryByParams.Item Property
.NET Framework 1.1
Gets or sets the name of the HTTP Get or Post parameter that is used to select one of several different cached responses.
[C#] In C#, this property is the indexer for the HttpCacheVaryByParams class.
[Visual Basic] 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;
[JScript] 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.
Arguments [JScript]
- header
- The name of the custom header.
Parameters [Visual Basic, C#, C++]
- header
- The name of the custom header.
Property Value
The parameter name.
Exceptions
| Exception Type | Condition |
|---|---|
| ArgumentNullException | header is a null reference (Nothing in Visual Basic). |
Requirements
Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family
See Also
HttpCacheVaryByParams Class | HttpCacheVaryByParams Members | System.Web Namespace
Show: